Hi Ralph, On Tue, 1 Aug 2023 at 20:58, Ralph Goers <ralph.go...@dslextreme.com> 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 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-user-h...@logging.apache.org