We are developing a Spring-based web app, using Tomcat on our individual development boxes, but using JBoss 4.2.3 for production (the app is currently in the early stages of development). We have set up java.util.logging-based logging in Tomcat by including a logging.properties file under WEB-INF/classes. I am trying to tweak JBoss to use java.util.logging with this properties file as well.
I have found and followed the instructions given at http://www.jboss.org/community/wiki/LoggingPlug-inJDKjavautillogging for configuring JBoss to use java.util.logging, but I am not getting the expected results. Specifically, in run.bat I have:
set JAVA_OPTS=%JAVA_OPTS% -Dorg.jboss.logging.Logger.pluginClass=logging.JDK14LoggerPlugin -Djava.util.logging.config.file=logging.properties -Dmy.log.directory=E:/MyLog
handlers = org.apache.juli.FileHandler ############################################################ # Handler specific properties. # Describes specific configuration info for Handlers. ############################################################ org.apache.juli.FileHandler.level = FINE org.apache.juli.FileHandler.directory = ${my.log.directory} org.apache.juli.FileHandler.prefix = my.