JakeWharton / hugo

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

Allow Injection of Logging Implementation (e.g. Add Support for SLF4J) #60

Open josephearl opened 9 years ago

josephearl commented 9 years ago

At the moment Hugo directly connects @DebugLog and the Android Log.v.

The main issue with this is you cannot log to a file, multiple destinations or intercept or transform/mask any log messages.

It would be nice if Hugo would allow plugging the users Logger of choice through something like SLF4J.

I note this is somewhat similar to #40 although the purposes are quite different - solving one should solve the other.

ChrisMCMine commented 9 years ago

Definitely +1

My suggested solution would be setting a global hugo DebugLog listener once which gets called every time before logging something and which also provides the method name, execution time, etc. as variables

kenyee commented 9 years ago

+1

mlostekk commented 6 years ago

+1