[
https://issues.jboss.org/browse/WFLY-3307?page=com.atlassian.jira.plugin....
]
Takayoshi Kimura updated WFLY-3307:
-----------------------------------
Attachment: log4j-war.zip
Attached reproducer war app project log4j-war.zip.
The test URL is
http://localhost:8080/log4j-war/sample and log should be generated at
$WFLY_HOME/standalone/log/app.log
stdout lost with log4j.xml per-deployment logging
-------------------------------------------------
Key: WFLY-3307
URL:
https://issues.jboss.org/browse/WFLY-3307
Project: WildFly
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Logging
Affects Versions: 8.1.0.CR1
Reporter: Takayoshi Kimura
Assignee: James Perkins
Attachments: log4j-war.zip
With log4j.xml per-deployment logging, the appenders are added within the
org.apache.log4j.Logger.getLogger() call. Currently System.out.println("foo")
initializes no-handler "stdout" logger which is essencially no-op.
To workaround, initializing the following 2 loggers before using System.out/err.
{code}
org.apache.log4j.Logger.getLogger("stdout");
org.apache.log4j.Logger.getLogger("stderr");
{code}
--
This message was sent by Atlassian JIRA
(v6.2.3#6260)