[slf4j-user] ehcache switched from commons to j.u.l and I see no log files

Ceki Gulcu ceki at qos.ch
Mon Aug 24 14:22:57 CEST 2009


John Cherouvim wrote:
> Hello Ceki
> 
> The code that changed is my dependency's (ehcache) and not my 
> application code.
> I just droped the jar into WEB-INF/lib
> Is it possible to make logging work again without having to touch any 
> code but only via configuration file changes?

Have a look at [1, 2]. It can't be done without adding code your application. 
However, it's just one line to be invoked during initialization time of your 
application.

[1] http://slf4j.org/legacy.html
[2] http://slf4j.org/api/org/slf4j/bridge/SLF4JBridgeHandler.html

-- 
Ceki Gülcü
Logback: The reliable, generic, fast and flexible logging framework for Java.
http://logback.qos.ch



More information about the slf4j-user mailing list