[logback-user] Elongated system startup-time because of Logback configuration

Ralph Goers rgoers at apache.org
Mon Nov 22 16:08:20 CET 2010


On Nov 22, 2010, at 6:49 AM, Nikhil Diwan wrote:

> 
> Thanks Ceki for your input...unfortunately It didn't work for me.
> 
> Jars added in lib for logback:-
>    -  groovy-all-1.6.5
>    -  logback-core-0.9.24
>    -  logback-classic-0.9.24
>    -  slf4j-api-1.6.0
> As suggested by you, replaced logback-classic with "slf4j-nop-1.3.0", then I got
> an error saying
> 
>        SLF4J: slf4j-api 1.6.x (or later) is incompatible with this binding.
>        SLF4J: Your binding is version 1.5.5 or earlier.
>        SLF4J: Upgrade your binding to version 1.6.x. or 2.0.x
>        java.lang.NoSuchMethodError:
> org.slf4j.impl.StaticLoggerBinder.getSingleton()Lor
>        g/slf4j/impl/StaticLoggerBinder;
>                at org.slf4j.LoggerFactory.bind(LoggerFactory.java:121)
>                at
> org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:111)
> 
>                at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:268)
>                at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:241)
>                at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
> 
> So I replaced slf4j-api-1.6.0 with lower version(i.e. slf4j-api-1.5.5), error
> gone but no logging in my system!
> 
> Interestingly, no errors, no warnings and no logging though I jars and groovy
> file is in the classpath.
> 
> Did I do anything wrong?
> - Any light on this

The point of this exercise was to remove logback from the picture, which it appears you have successfully done.  If you are still having slow startup time then it probably means Logback isn't at fault.

Ralph


More information about the Logback-user mailing list