[logback-user] Equivalent of LogManager.getCurrentLoggers() ?

Roy Cronise sweep at ccyor.com
Tue Mar 22 22:31:23 CET 2011

James, Would this get you the loggers?

LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();


On Mar 22, 2011 12:33 PM, James Morgan <james.morgan.e at gmail.com> wrote: 

Hi, I've recently started using LogBack with SLF4j instead of Log4J and have run into a problem. 

We currently have a simple servlet that gets deployed with all our running apps which allows us to change the Logging level and add loggers at runtime. 
Im currently trying to convert the current implementation to support LogBack with SLF4j and have run into problems. 

One of the core parts of the servlet gets all loggers in order to create a GUI where things can be controlled from. 
It uses this factory class to get all loggers, org.apache.log4j.LogManager.getCurrentLoggers(). I've looked through the code and online but have yet to find an alternative solution.

Do you know if there is away to get all loggers simplar to the given factory methods? Or am i heading in the wrong directiopn with this, is there alternatives to find this informaiton out about current loggers?

Thanks for any help you can provide.
Cheers James

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110322/312d5cc0/attachment.html>

More information about the Logback-user mailing list