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

James Morgan james.morgan.e at gmail.com
Wed Mar 23 09:51:09 CET 2011


Cheers for the help, both solutions suggested seem viable and I'm sure I can
now get it done.

Ill be in touch if I run in to any further problems.

Cheers James

On 22 March 2011 21:31, Roy Cronise <sweep at ccyor.com> wrote:

>
> James, Would this get you the loggers?
>
> LoggerContext lc = (LoggerContext)LoggerFactory.getILoggerFactory();
>
> lc.getLoggerList();
>
>
>
>
> --
>
> ------------------------------
> 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
>
> _______________________________________________
> Logback-user mailing list
> Logback-user at qos.ch
> http://qos.ch/mailman/listinfo/logback-user
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://qos.ch/pipermail/logback-user/attachments/20110323/be2cdecc/attachment-0001.html>


More information about the Logback-user mailing list