[slf4j-user] JUL to LOG4J

Erik van Oosten e.vanoosten at grons.nl
Sat Jul 25 14:11:53 CEST 2009


Well ...,  I have been struggling with the same thing myself. I once 
created a spring bean to be able to do call this from a spring 
configuration. But for now I just settled with calling this in the 
initialization class of my Wicket applications.

I am also interested in better solutions.

Regards,
    Erik.


J G wrote:
> Hi Erik,
>
> Thanks for the response.
>
> What's the typical pattern for calling this initialization method? I 
> want to make this as lightweight as possible and would prefer not to 
> have to create a servlet just for the container to initialize sl4fj. 
> Are there any other strategies or patterns people use?
>
> Thanks.
>
>
>
>
> > Date: Fri, 24 Jul 2009 12:31:25 +0200
> > From: e.vanoosten at grons.nl
> > To: user at slf4j.org
> > Subject: Re: [slf4j-user] JUL to LOG4J
> >
> > Having the jar on your classpath is not sufficient. You also need to
> > execute (e.g. sometimes during initialization):
> >
> > SLF4JBridgeHandler.install();
> >
> > Regards,
> > Erik.


-- 
Erik van Oosten
http://www.day-to-day-stuff.blogspot.com/




More information about the slf4j-user mailing list