Using Custom handlers adds a Log4j consoleAppender
Issue
-
stdout log in JBoss EAP 6.0.1 environment is showing duplicate log entries.
-
When specifying a custom handler in the logging subsystem, a log4j ConsoleAppender is systematically added to the root logger which leads to duplicate logs when applications or third party libraries logs with log4j.
INFO [stdout] (http-/127.0.0.1:8080-1) 7891 [http-/127.0.0.1:8080-1] INFO org.jboss.example.logging.log4j.TestLogging - I'm logging with Log4j
INFO [org.jboss.example.logging.log4j.TestLogging] (http-/127.0.0.1:8080-1) I'm logging with Log4j
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6.0.1
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.