Re: Multiple applications using GetLogger with same name
"Piotr P. Karwasz" <[email protected]> Tue, 1 Aug 2023 21:26:10 +0200
| Newsgroups | gmane.comp.jakarta.log4j.user |
|---|---|
| Message-ID | <CAFmygFY08Z8+B3eaqL-gyTJ88-NNyJciNVQ4HTZBjMEapcKh7w@mail.gmail.com> |
Hi Ralph, On Tue, 1 Aug 2023 at 20:58, Ralph Goers <[email protected]> wrote: > 2. Partition your application so that the main application and each batch job use their own ClassLoader. The ClassLoaderContextSelector (the default) will then create a LoggerContext for each ClassLoader and each can have its own configuration. This is not so easy with the current ClassLoaderContextSelector: if the parent classloader already has a logger context and the context selector was called with `configLocation=null` (which is almost always the case), the ClassLoaderContextSelector returns the logger context of the parent classloader. Piotr