Advertise with us

Our eBooks

JBoss start up configuration

Logging the startup process

JBoss uses the Log4jService (in JBoss AS 5.x and earlier) or the LoggingService (in JBoss AS 6.x and later) to configure logging.

However this service is not configured until after the bootstrap phase.

During the bootstrap the microkernel logs into log/boot.log using the configuration defined in (in 5.x and earlier) or (in 6.x and later) contained in $JBOSS_HOME/bin/run.jar.

If you want to customize the boot loggin you have basically two options:

  • Change the configuration inside run.jar 
  • Use a system property to reference an outside configuration file.

The simplest strategy is to un-jar $JBOSS_HOME/bin/run.jar, change the appropriate properties file and re-jar. (We suggest you using the Open Source archiving software 7-zip which does a good job at editing files inside of archives).

Alternatively, you can also specify the boot log configuration at the command line, instead of editing run.bat/, for example:

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

or for the release 6.x :

run.bat -Dlogging.configuration=file:./

How to start JBoss as a service.

See the following article: Run JBoss as Service HowTo

© 2021 All Rights Reserved.

Please publish modules in offcanvas position.