JakeWharton / hugo

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

Add a global disable for Hugo #87

Closed dalewking closed 8 years ago

dalewking commented 9 years ago

The scenario I am concerned about is unit testing on the PC using the new unit testing support in the gradle plugin. Unit testing a method with @DebugLog is very difficult. I ended up having to use PowerMock to mock some static methods in Looper and the Log.d method itself. Would be a lot handier if I could just set a static somewhere to turn off Hugo.

JakeWharton commented 8 years ago

93.