[slf4j-dev] [Bug 323] slf4j not logging VERBOSE and DEBUG messages, no matter what is Logcat's loglevel
bugzilla-daemon at qos.ch
bugzilla-daemon at qos.ch
Mon Feb 2 11:06:30 CET 2015
http://bugzilla.slf4j.org/show_bug.cgi?id=323
Martin Vysny <vysny at baka.sk> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |vysny at baka.sk
--- Comment #1 from Martin Vysny <vysny at baka.sk> ---
The problem is that slf4j honors Android's Log.isLoggable() function, which
seems correct, but unfortunately in Android it's not. The Log.isLoggable() by
defaults returns false for debug logging. DEBUG can be configured only by
gaining developer access to the phone. So, the application itself nor the user
cannot enable debug level easily. This behavior is IMHO broken horribly and
developers are simply not using that call:
http://stackoverflow.com/questions/19984838/how-to-get-slf4j-android-to-honor-logcat-logging-level
I myself have found a workaround by using the slf4j-android 1.6.1-RC1. So, I
would vote for not calling Log.isLoggable() at least for Logger.debug(); I
would however recommend to not Log.isLoggable() entirely. Thanks!
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-dev/attachments/20150202/49aefbf9/attachment.html>
More information about the slf4j-dev
mailing list