Where do you configure log4j settings in jboss6
Asked Answered
K

2

4

jboss-6.0.0.Final doesn't seem to have jboss-log4j.xml which was used to configure log4j settings in jboss5 (i.e. under server/default/conf/jboss-log4j.xml)

Koren answered 17/6, 2011 at 6:40 Comment(0)
H
6

Apparently the name and location changed since release 6:

In the releases 4.x and 5.x it's located here:JBoss_HOME\server\default\conf\jboss-log4j.xml

Since the release 6.0.0 M1 it's located in the deploy folder: JBOSS_HOME\server\default\deploy\jboss-logging.xml

Source: http://www.mastertheboss.com/jboss-application-server/251-jboss-log4j-configuration.html

However answered 17/6, 2011 at 8:10 Comment(1)
It must be noted that JBoss AS 6 doesn't use log4j anymore cause it proved to be vulnerable to deadlocks and performance problems. jboss-logging.xml is configuration for custom JBoss logging framework. I would suggest switching apps from log4j to slf4j and using slf4j-jboss-logging.jar adapter.Concertante
T
1

if you are using axis2.war the log4j.properties is there in axis2.war/WEB-INF/classes so what you do set the log4j.properties in a classpath.

Thomas answered 31/5, 2012 at 9:4 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.