Android: no logs when registering through slf4j-android

I am using a library that uses sfl4j-api to enter android application. So I use slf4j-android to get the logs, but I only received the following messages:

I/AndroidLoggerFactory(  267): Logger name 'org.apache.mina.util.NamePreservingRunnable' exceeds maximum length of 23 characters, using 'o*.a*.m*.u*.NamePreser*' instead.

And there are no more magazines from this library, but I see a lot of them in the code. I tried changing the logging level for tags in the emulator:

emulator -avd default -debug '*'

or

emulator -avd default -verbose

and nothing has changed.

Any help would be appreciated.

+3
source share
2 answers

I finally found the answer. LOG.isDebugEnabled()always returns false, even if it LOG.debug(msg)printed a message in ddms. I just got rid of LOG.isDebugEnabled().

+1
source

slf4j.org-android, , , / , , @kogut-s .

lp0-slf4j-android, , /verbose messages, .

+1

Source: https://habr.com/ru/post/1775667/


All Articles