JakeWharton / hugo

Annotation-triggered method call logging for your debug builds.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to use Hugo.setEnabled(true)?

NickRimmer opened this issue · comments

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);
        }
    }
}

Duplicate. #104

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