[slf4j-user] Slf4j for Android

Fred phreed at gmail.com
Tue Sep 25 18:03:44 CEST 2012


There is a logback-android project which, I believe, provides the
implementation for which you are looking.

On Tue, Sep 25, 2012 at 10:07 AM, Dario Garcia <dario.garcia at 10pines.com> wrote:
> Hi everyone,
>
> This is my first post, I apologize if not conforming to the etiquette of
> this list (point me in the right direction in that case).
>
> My name is Darío García, I'm an Android developer using SLF4J Android.
> I have a little suggestion for SLF4J Android that will make my life easier,
> and hopefully other users too.
>
> The context:
> My android application use several libs that output log statements using
> slf4j.
> As far as I know there's no way to tell the Android SLF4J binding which
> loggers should be silent and which should be outputed (as oposed to
> logback's configuration xml).
> That means that when I set debug as the current level, I get mixed
> statements from my code, and from those libraries in the log and is
> difficult to read.
> Also there's a performance penalty due to all the logging.
>
> Suggestion 1:
> Is there any chance that you will be adding the possibility to configure
> each logger as logback does?
> I could mute the libraries and only output my own code to android logcat.
>
> Alternate suggestion 2:
> Is there any chance to separate the SLF4J api, and the android binding?
> In that way I could use a Null Binding for those libraries so I don't see
> them in the logs.
> And use the native android logging system for my own code.
> This is not as pretty but could do the work.
>
> Thanks for your time,
> Best regards
>
> --
> Darío García
> Agile Software Development
> +54 (911) 6336-3707
> Office: +54 - 011 - 4311-8404
> dario.garcia at 10pines.com
>
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user


More information about the slf4j-user mailing list