tags:

views:

165

answers:

1

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.

+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
The simplest way - just redefine property jboss.server.log.dir.
Vladimir Bezugliy
Yes, but that will move *all* the logs, not just the boot log
skaffman