[
https://issues.redhat.com/browse/WFCORE-482?page=com.atlassian.jira.plugi...
]
Andrew Marlow commented on WFCORE-482:
--------------------------------------
Thinking some more about wildfly using log4j2, and thinking about java logging in general,
I am wondering if this enhancement request is really appropriate. If wildfly was changed
then later on it might only need to be changed for log4j version 3, as and when that comes
along. IMO it would be better for wildfly to use slf4j to wrap which logger is actually
used. Given that wildfly is an application server, it is going to run code in a container
where that code could use all sorts of other third party open source components. Those
components could contain a mixture of logging approaches. So I think it is up to such
components to use slf4j so that they can all play nicely together. If they did and wildfly
still picked its own logger then that would be a shame. If on the other hand wildfly used
slf4j then if any any contained component didn't that would be the fault of the
contained component.
Do people agree? If so then perhaps a new ticket should be raised for wildfly to use
slf4j. Surely it is the best of both worlds, providing a way for it to still use log4j-v1
for those environments forced to use that logger, and to use log4j2 or logback or
whatever, for everyone else.
Add log4j2 support for WildFly
------------------------------
Key: WFCORE-482
URL:
https://issues.redhat.com/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: Major
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.13.8#713008)