How to use Hugo.setEnabled(true)?
NickRimmer opened this issue · comments
Nick Rimmer commented
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
Duplicate. #104
Nick Rimmer commented
Maybe you want to say about this moment in README.md? (=