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.
精彩评论