Skip to content

AppLog add debug/release switch ,please #11

@3c

Description

@3c

now it's printing log always

    public static void v(T tag, String message) {
        message = StringUtils.notNullStr(message);
        Log.v(TAG + "-" + tag.toString(), message);
        addEntry(tag, LogLevel.v, message);
    }

try to add a variable to control log is printed or not ,such as

    public static void v(T tag, String message) {
        message = StringUtils.notNullStr(message);
        if(BuildConfig.debug){
                Log.v(TAG + "-" + tag.toString(), message);
        }
        addEntry(tag, LogLevel.v, message);
    }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions