<span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Hi everyone,</span><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">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).</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
My name is Darío García, I'm an Android developer using SLF4J Android.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">I have a little suggestion for SLF4J Android that will make my life easier, and hopefully other users too.</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
The context:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">My android application use several libs that output log statements using slf4j.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
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).</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
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.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Also there's a performance penalty due to all the logging.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Suggestion 1:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Is there any chance that you will be adding the possibility to configure each logger as logback does?</div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">I could mute the libraries and only output my own code to android logcat.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
<br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Alternate suggestion 2:</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Is there any chance to separate the SLF4J api, and the android binding?</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">In that way I could use a Null Binding for those libraries so I don't see them in the logs. </div>
<div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">And use the native android logging system for my own code.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
This is not as pretty but could do the work.</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif"><br></div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">
Thanks for your time,</div><div style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Best regards</div><div><br></div>-- <br><span style="border-collapse:collapse;font-family:arial,sans-serif;font-size:13px"><div>
<b>Darío García</b></div><div>Agile Software Development</div><div>+54 (911) 6336-3707</div><div>
<strong><span style="font-size:8pt"><span style="font-size:small"><font><span style="font-weight:normal">Office: +54 - 011 - 4311-8404</span></font></span></span></strong></div><div><a href="mailto:dario.garcia@10pines.com" style="color:rgb(42,93,176)" target="_blank"><font color="#33CC00"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34)">dario.garcia@10pines.com</span></font></a></div>
</span><br>