QiChengWei created LOG4J2-660:
---------------------------------
Summary: RunLogback throws ClassCastException
Key: LOG4J2-660
URL: https://issues.apache.org/jira/browse/LOG4J2-660
Project: Log4j 2
Issue Type: Bug
Components: Core
Affects Versions: 2.0-rc1
Environment: MackBook ME865 , OS X 10.9.3
Reporter: QiChengWei
Priority: Minor
execute the main in the PerfTestDriver , running the tests
tests.add(m("perf-logback.xml", LOGBK, "Sync", i)); cause a ClassCastException
stacktrace as follows:
Exception in thread "Thread-1" java.lang.ClassCastException:
org.slf4j.helpers.SubstituteLogger cannot be cast to
ch.qos.logback.classic.Logger
at
org.apache.logging.log4j.core.async.perftest.RunLogback.runThroughputTest(RunLogback.java:37)
at
org.apache.logging.log4j.core.async.perftest.PerfTest.runTest(PerfTest.java:182)
at
org.apache.logging.log4j.core.async.perftest.MtPerfTest$1.run(MtPerfTest.java:46)
at java.lang.Thread.run(Thread.java:745)
SLF4J: The following set of substitute loggers may have been accessed
SLF4J: during the initialization phase. Logging calls during this
SLF4J: phase were not honored. However, subsequent logging calls to these
SLF4J: loggers will work as normally expected.
SLF4J: See also http://www.slf4j.org/codes.html#substituteLogger
SLF4J: org.apache.logging.log4j.core.async.perftest.RunLogback
--
This message was sent by Atlassian JIRA
(v6.2#6252)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]