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

How to use Hugo.setEnabled(true)? #125

Closed
NickRimmer opened this issue Feb 27, 2016 · 2 comments
Closed

How to use Hugo.setEnabled(true)? #125

NickRimmer opened this issue Feb 27, 2016 · 2 comments

Comments

@NickRimmer
Copy link

If you want to toggle logging at runtime, use Hugo.setEnabled(true|false)

I can't find Hugo.setEnabled. What I am doing wrong?

buildscript {
    repositories {
        jcenter()
    }
    dependencies {
        classpath 'com.android.tools.build:gradle:2.0.0-beta6'
        classpath 'com.jakewharton.hugo:hugo-plugin:1.2.1'
    }
}

apply plugin: 'com.android.application'
apply plugin: 'com.jakewharton.hugo'
public class App extends Application{
    @Override
    public void onCreate() {
        super.onCreate();
        if(BuildConfig.DEBUG) {
            Hugo.setEnabled(true);
        }
    }
}
@johnwatsondev
Copy link

Duplicate. #104

@NickRimmer
Copy link
Author

Maybe you want to say about this moment in README.md? (=

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

2 participants