Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
2.0-beta9, 2.0-rc1
-
None
-
Android
Description
ERROR StatusLogger Unable to locate a logging implementation, using SimpleLogger
Code:
Logger LOG = LogManager.getLogger(MainActivity.class);
LOG.error("Test Log4j2");
<?xml version="1.0" encoding="UTF-8"?> <Configuration> <Appenders> <Console name="STDOUT" target="SYSTEM_OUT"> <PatternLayout pattern="%d %-5p [%t] %C{2} (%F:%L) - %m%n"/> </Console> </Appenders> <Loggers> <Logger name="hello" level="info"/> <Root level="trace"> <AppenderRef ref="STDOUT"/> </Root> </Loggers> </Configuration>
Attachments
Attachments
Issue Links
- duplicates
-
LOG4J2-146 Log4J 1.2 API implementation ClassCastException with SimpleLoggerContext
- Closed
- is duplicated by
-
LOG4J2-460 java.lang.ClassCastException: org.apache.logging.log4j.simple.SimpleLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
- Resolved