Where do you configure log4j settings in jboss6

帅比萌擦擦* 提交于 2019-12-19 21:46:35

问题


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)


回答1:


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




回答2:


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.



来源:https://stackoverflow.com/questions/6382224/where-do-you-configure-log4j-settings-in-jboss6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!