On Sun, Sep 27, 2020 at 6:38 PM Ralph Goers <[email protected]> wrote:
>
> It would not create a new LoggerContext. But a ConfigurationSource represents 
> an entire configuration. So calling initialize with it would cause a new 
> Configuration to be created. So yes, all your existing LoggerConfigs would be 
> replaced by the new configuration.  Loggers would be unaffected as those are 
> created by the application calling LogManager.getLogger().

Okay, but in my particular case, I am not using
LogManager.getLogger(), but loggerContext.getLogger(), because I have
multiple LoggerContext instances. (Think of a shared manager, which
provides logging for all web applications in a web server.)

So, the loggers are, in fact, tied to a particular LoggerContext,
which I don't want to lose. Question remains: How can I change a given
LoggerContect, if I have a ConfigurationSource?

Jochen


-- 

Look, that's why there's rules, understand? So that you think before
you break 'em.

    -- (Terry Pratchett, Thief of Time)

Reply via email to