开发者

Is it possible to change folder where JBoss 5.1 writes its boot traces?

开发者 https://www.devze.com 2022-12-23 17:29 出处:网络
By default JBoss 5.1 writes boot traces to $JBOSS_HOME/server/default/log folder. Is it possible to change location for boot traces?

By default JBoss 5.1 writes boot traces to $JBOSS_HOME/server/default/log folder.

Is it possible to change location for boot traces?

Boot traces - traces in file boot.lo开发者_JS百科g.


The log4j bootstrap log is configured, rather bizzarely, from the log4j.properties inside bin/run.jar. You need to override that configuration with your own.

See this page for a description of how it works, but essentially you can supply your own boot log4j config by using a system property, e.g.

run.bat -Dlog4j.configuration=file:./log4j.properties

Once the bootstrap has finished, JBoss will switch to the conf/jboss-log4j.xml configuration as before.

0

精彩评论

暂无评论...
验证码 换一张
取 消