Open
Description
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 }
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
To triage