Can you post the contents of your log4j.properties file? And also the code from where you
are logging the TRACE level logs (if at all that class belongs to your application).
Also, to make sure that your log4j.properties (which you mention is in a SAR) is indeed
being picked up, edit the run.bat file (assuming you are on Windows OS) under
%JBOSS_HOME%/bin to pass -Dlog4j.debug as a JVM parameter:
anonymous wrote : set JAVA_OPTS=%JAVA_OPTS% -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Dlog4j.debug
Log4j prints out information about the location from where it picks up the
log4j.xml/log4j.properties file. Keep an watch on the console and the server.log file for
this information. You might see something like:
| log4j: Trying to find [log4j.xml] using context classloader
org.jboss.system.server.NoAnnotationURLClassLoader@c9ba38.
| log4j: Trying to find [log4j.xml] using
org.jboss.system.server.NoAnnotationURLClassLoader@c9ba38 class loader.
| log4j: Trying to find [log4j.xml] using ClassLoader.getSystemResource().
| log4j: Trying to find [log4j.properties] using context classloader
org.jboss.system.server.NoAnnotationURLClassLoader@c9ba38.
| log4j: Using URL
[jar:file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/bin/run.jar!/log4j.properties] for automatic
log4j configuration.
| log4j: Reading configuration from URL
jar:file:/D:/JBoss-4.2.2/jboss-4.2.2.GA/bin/run.jar!/log4j.properties
| log4j: Parsing for [root] with value=[DEBUG, FILE, CONSOLE].
| log4j: Level token is [DEBUG].
| log4j: Category root set to DEBUG
| log4j: Parsing appender named "FILE".
| log4j: Parsing layout options for "FILE".
| log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %-5p [%c{1}] %m%n].
| log4j: End of parsing for "FILE".
| log4j: Setting property [append] to [false].
| log4j: Setting property [file] to
[D:\JBoss-4.2.2\jboss-4.2.2.GA\server\jaikiran\log/boot.log].
| log4j: setFile called: D:\JBoss-4.2.2\jboss-4.2.2.GA\server\jaikiran\log/boot.log,
false
| log4j: setFile ended
| log4j: Parsed "FILE" options.
| log4j: Parsing appender named "CONSOLE".
| log4j: Parsing layout options for "CONSOLE".
| log4j: Setting property [conversionPattern] to [%d{ABSOLUTE} %-5p [%c{1}] %m%n].
| log4j: End of parsing for "CONSOLE".
| log4j: Setting property [threshold] to [INFO].
| log4j: Setting property [target] to [System.out].
| log4j: Parsed "CONSOLE" options.
| log4j: Finished configuring.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4125142#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...