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

I have also built the sample JDK14LoggerPlugin into a JAR file, dropped the JAR 
file into JBOSS_DIST/lib and added the -L <jar_name> option to get JBoss to 
load it.  The boot.log file indicates that it is getting loaded, and that the 
my.log.directory property is getting set correctly.  (However, I notice that 
the org.jboss.logging.Logger.pluginClass and java.util.logging.config.file 
properties do NOT appear in boot.log.)

The logging.properties file is bundled into my WAR file under WEB-INF/classes, 
and looks like:

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.

However, when I run the app, no log file is created in E:\MyLog, and none of my 
expected log output appears in the server.log file for JBoss.

What more do I need to do?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4244114#4244114

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4244114
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to