JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.
Apache License 2.0
7.92k stars 798 forks source link

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

Closed NickRimmer closed 8 years ago

NickRimmer commented 8 years ago
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 commented 8 years ago

Duplicate. #104

NickRimmer commented 8 years ago

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