[
https://issues.jboss.org/browse/WFCORE-482?page=com.atlassian.jira.plugin...
]
Jens Viebig edited comment on WFCORE-482 at 3/15/17 6:17 AM:
-------------------------------------------------------------
Just a note for people that just want their application using log4j2 to log to the wildfly
server log (for example because of using a framework struts2 which is using log4j2)
This might not be an answer to the original question, but people might come here because
of google results for "wildfly log4j2"
The answer is here:
http://stackoverflow.com/questions/26313113/wrong-logging-in-jboss-wildfl...
Just include:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.7</version>
</dependency>
was (Author: jviebig):
Just a note for people that just want their application using log4j2 to log to the wildfly
server log (for example because of using a framework struts2 which is using log4j2)
The answer is here:
http://stackoverflow.com/questions/26313113/wrong-logging-in-jboss-wildfl...
Just include:
<dependency>
<groupId>org.apache.logging.log4j</groupId>
<artifactId>log4j-to-slf4j</artifactId>
<version>2.7</version>
</dependency>
Add log4j2 support for WildFly
------------------------------
Key: WFCORE-482
URL:
https://issues.jboss.org/browse/WFCORE-482
Project: WildFly Core
Issue Type: Task
Components: Logging
Environment: Spring 3, Hibernate, Wicket, JBoss AS7
Reporter: Amarkanth Ranganamayna
Assignee: James Perkins
Priority: Optional
I am trying to use Flume Appender which comes with Log4j2 (log4j 1.x doesn't support
flume appender) (AND) inorder to acheive this, I am looking at how to configure JBoss AS7
to use log4j2.
Looks like Jboss AS7 by default use log4j 1.x
Are you guys already working on using log4j2 ?
If NOT, can you please suggest how to configure Jboss AS7 such that it picks up
"log4j2.xml" file and doesn't use its own logging.
Thanks,
Amar
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)