Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AppLog add debug/release switch ,please #11

Open
3c opened this issue Feb 21, 2017 · 0 comments
Open

AppLog add debug/release switch ,please #11

3c opened this issue Feb 21, 2017 · 0 comments

Comments

@3c
Copy link

3c commented Feb 21, 2017

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);
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant