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.log.
views:
165answers:
1
+2
A:
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.
skaffman
2010-03-23 16:48:21
The simplest way - just redefine property jboss.server.log.dir.
Vladimir Bezugliy
2010-03-24 10:58:49
Yes, but that will move *all* the logs, not just the boot log
skaffman
2010-03-24 11:52:33