Re: LogManager.getLogger("name") not finding custom loggers
"Piotr P. Karwasz" <[email protected]> Wed, 20 Apr 2022 20:13:39 +0200
| Newsgroups | gmane.comp.jakarta.log4j.user |
|---|---|
| Message-ID | <CAFmygFbc7YO=s5Y5RJGg9gwXwEbJ7H2yOjqN5BM-Jrndp72Ctg@mail.gmail.com> |
Hello Stephen, On Wed, 20 Apr 2022 at 20:03, Stephen Johns <[email protected]> wrote: > Configurator.initialize(configurationBuilder.build()); > This only works if the `LoggerContext` has not been initialized yet. Since every call to a `LogManager` method initializes a `LoggerContext`, it is almost certainly too late to use `Configurator.initialize`. Use `Configuration.reconfigure` instead, which works in all cases. Piotr