brr53 opened a new issue, #2111:
URL: https://github.com/apache/logging-log4j2/issues/2111
## Description
When starting an application with:
`Logger logger = LogManager.getLogger("test");`
It takes 5 seconds consistently for the first logger to initiate.
Afterwards, this command can be repeated and there is no slowdown.
This makes it extremely troublesome to run tests, debug as program start
time is increased by 5 seconds.
## Configuration
**Version:** [Log4j version]
2.21.1
**Operating system:** [OS and version]
macOS Montery (m1 processor)
**JDK:** [JDK distribution and version]
openjdk-21.0.1
## Reproduction
` public static void main(String[] args) {
long ts = System.currentTimeMillis();
LogManager.getLogger("test");
System.out.println(System.currentTimeMillis() - ts); // eg. 5432
}`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]