Description
The ES Logging API's LogManager.getLogger is depending on LogManagerFactory implementation for logging creation
LogManagerFactory is simply creating LoggerImpl - a simple adapter for log4j loggers. Log4j itself is caching logger creation.
ES logging API implementation should cache created logger adapters in LogManagerFactory.
LogManager.getLogger("name");
LogManager.getLogger("name");
should create only only one instance of LoggerImpl
a follow up after review
https://github.com/elastic/elasticsearch/pull/86612/files/b8fb661f8576b0e690c22a4d813866f551a7e42d#r891688549
Description
The ES Logging API's LogManager.getLogger is depending on LogManagerFactory implementation for logging creation
LogManagerFactory is simply creating LoggerImpl - a simple adapter for log4j loggers. Log4j itself is caching logger creation.
ES logging API implementation should cache created logger adapters in LogManagerFactory.
should create only only one instance of LoggerImpl
a follow up after review
https://github.com/elastic/elasticsearch/pull/86612/files/b8fb661f8576b0e690c22a4d813866f551a7e42d#r891688549