[slf4j-user] Setting log level and writing to a file

Kevan Stannard kevan.stannard at gmail.com
Thu Jun 24 11:13:54 CEST 2010


Hi Ceki, thanks for helping me sort this out.

So my understanding is as follows:

1) slf4j-simple.jar is our basic logging framework that has no configuration
options.

2) jcl-over-slf4j-1.6.0.jar is providing the implementation of JCL that
forwards requests on to the SLF4J Simple framework (in this case), so any
JCL configuration options will have no effect because JCL is not the actual
underlying logging framework.

3) If I want to have options such as setting log level or writing the log
output to a file then I would need to remove slf4j-simple.jar and replace it
with another logging framework. Logback seems to be a good option that has
come up a few times during my investigation.

Hopefully I am getting some of this correct, but I appreciate if you can
correct anything I am not getting right.

Thanks




On 24 June 2010 18:18, Ceki Gülcü <ceki at qos.ch> wrote:

> Hello Kevan,
>
> SLF4J does not heed any configuration properties, none whatsoever. The
> only configuration you can do is to select the underlying logging
> framework that SLF4J will delegate to by placing a jar file on the
> class path, slf4j-simple.jar in your case.
>
> HTH,
>
>
> On 23/06/2010 10:30 PM, Kevan Stannard wrote:
>
>> I am working on a Groovy application with Spring.
>>
>> I have the following SLF4J jars:
>>
>> slf4j-api-1.6.0.jar
>> slf4j-simple-1.6.0.jar
>> jcl-over-slf4j-1.6.0.jar
>>
>> With these jars Is it possible to configure
>> a) the log level, or
>> b) a file to write the logging output to?
>>
>> I did find an old post from Ceki that indicated that SLF4J Simple could
>> not be configured (
>> http://www.mail-archive.com/user@slf4j.org/msg00384.html ) but I just
>> wanted to confirm this.
>>
>> I am new to both SLF4J and logging so I appreciate any advice.
>>
>> Thanks
>>
>>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://qos.ch/mailman/listinfo/slf4j-user
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/slf4j-user/attachments/20100624/9e341123/attachment-0001.html>


More information about the slf4j-user mailing list