-
Bug
-
Resolution: Duplicate
-
Major
-
None
-
1.0.0.GA
-
None
-
None
When providing a factory to BridgeRepository.getLogger(final String name, final LoggerFactory factory) the factory is ignored, which leads to ClassCastExceptions up the chain. The most common workaround seems to be to manipulate the classloader or exclude the log manager, but this only adds more complexity, and leads to loss of functionality when overloading the Logger class.
Use this example factory to test:
public static class MyTestLoggerFactory implements LoggerFactory {
public Logger makeNewLoggerInstance(String name)
{ return new MyTestLogger(name); }}
- duplicates
-
LOGMGR-29 Support for log4j Logger.getLogger(String, LogFactory)
-
- Closed
-