Closed
Description
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);
}
}
}
Activity
johnwatsondev commentedon Mar 4, 2016
Duplicate. #104
NickRimmer commentedon Mar 4, 2016
Maybe you want to say about this moment in README.md? (=