[slf4j-user] No message is logged except error level

Marek Šabo msabo at buk.cvut.cz
Tue Oct 19 19:40:08 CEST 2010


  Hi,

thanks for response, I rounded up the version and i have log4j 1.2.16 
and slf4j-(api/log4j) 1.6.1.
Sadly, it did not help, I still see only ERROR message from 5 
differently leveled messages.

Regards,

On 10/19/2010 07:24 PM, Ceki Gülcü wrote:
>
> In general the version of slf4j-api should be identical to that of the 
> binding. Given that you already have slf4j-api-1.5.8.jar on the 
> classpath you really should use slf4j-log4j12-1.5.8.jar. The 
> slf4j-api-1.6.1.jar and  slf4j-log4j12-1.6.1.jar combination would 
> work fine as well.
>
> HTH,
>
> On 19/10/2010 7:00 PM, Marek Šabo wrote:
>> Hi all,
>>
>> I would like to ask a question, hope I'm in right place.
>> I want to start using slf4j with log4j (used log4j before). I have
>> wicket based webapp in maven project.
>>
>> Versions of libs:
>> log4j-1.2.16
>> slf4j-log4j12-1.4.3
>> slf4j-api-1.5.8
>>
>> My log4j.properties:
>>
>> log4j.appender.Stdout=org.apache.log4j.ConsoleAppender
>> log4j.appender.Stdout.layout=org.apache.log4j.PatternLayout
>> log4j.appender.Stdout.layout.conversionPattern=%-5p - %-26.26c{1} - %m\n
>>
>> log4j.rootLogger=INFO, Stdout
>> log4j.logger.cz.cvut.fit.mdw.stream=DEBUG
>> log4j.logger.org.apache.wicket=INFO
>>
>>  From class cz.cvut.fit.mdw.stream.web.StreamSession i call these
>> logging statements:
>> LoggerFactory.getLogger(StreamSession.class).trace("Authentication login
>> success.");
>> and same for debug, info, warn and error.
>>
>> The problem is, only error message is displayed in tomcat console. I
>> thought it was conflict with commons-logging dependency so I removed it
>> but that didn't help. On the other hand, eclipse link and wicket info
>> messages are logged just fine, as the INFO parameter of rootLogger would
>> suggest. Any ideas where to start debugging or what it might be?
>>
>> Thanks in advance,
>>
>> Regards,
>>
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://qos.ch/mailman/listinfo/slf4j-user


-- 
Marek Šabo
Server Manager
Club SU CVUT Buben
Bubenečská Kolej (421)
XMPP: zeratul021 at gmail.com



More information about the slf4j-user mailing list