Re: [log4j] Question about the initial configuration created in LoggerContext

2022-12-27 Thread Matt Sicker
In this particular scenario, a file URI has been provided to the LoggerContext constructor. Given the fact that a Logger instance itself is not constructed until _after_ the LoggerContext has been constructed, no logging can possibly occur until at least after said construction. In our current i

Re: [log4j] Question about the initial configuration created in LoggerContext

2022-12-27 Thread Ralph Goers
Applications can be multi-threaded. I believe we load the DefaultConfiguration so other threads aren’t blocked by Log4j initialization. The statement that “no logging can possibly occur until after at least said construction” isn’t true. Ralph > On Dec 27, 2022, at 12:12 PM, Matt Sicker wrote: