[logback-user] org.slf4j.helpers.NOPLogger cannot be cast to ch.qos.logback.classic.Logger

Ceki Gülcü ceki at qos.ch
Thu Aug 25 15:45:17 CEST 2011


Hello Mohammed,

What does SLF4J print on the console. Does it mention defaulting to the 
nop-implementation?

On 25/08/2011 3:21 PM, BAKHTI Mohammed wrote:
>
> Hello,
>
> I got a problem when trying to deploy an application into Tomcat
>
> i got this exception : org.slf4j.helpers.NOPLogger cannot be cast to
> ch.qos.logback.classic.Logger
>
>
> and the line in my code is : ch.qos.logback.classic.Logger
> applicationLogger = (Logger)
> org.slf4j.LoggerFactory.getLogger("my.logger.name");
>
> any idea ?
>
> Thanks
-- 
QOS.ch, main sponsor of cal10n, logback and slf4j open source projects, 
is looking to hire talented software developers. For further details, 
see http://logback.qos.ch/job.html


More information about the Logback-user mailing list