hugo icon indicating copy to clipboard operation
hugo copied to clipboard

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

Open josephearl opened this issue 11 years ago • 3 comments

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.

josephearl avatar Nov 12 '14 18:11 josephearl

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

ChrisMCMine avatar Nov 21 '14 14:11 ChrisMCMine

+1

kenyee avatar Jan 19 '15 14:01 kenyee

+1

mlostekk avatar Dec 21 '17 22:12 mlostekk