JBoss Too Noisy?
JBoss logging too many DEBUG or INFO messages?
You'd think you could just change the log4j xml file in /usr/local/jboss/server/default/conf. But this has no effect.
Rather, in /usr/local/jboss/bin/run.sh there may be a:
- Setup JBoss sepecific properties
JAVA_OPTS="$JAVA_OPTS -Dprogram.name=$PROGNAME -Dlog4j.configuration=file:./log4j.properties"
Change properties to info from debug
That forces it to use the desired log4j configuration.
If that file is not there, try:
for file in $(find /usr/local/jboss -name log4j.xml); do
replace 'value="DEBUG"' 'value="ERROR"' -- $file
replace 'value="WARN"' 'value="ERROR"' -- $file
replace 'value="INFO"' 'value="ERROR"' -- $file
replace 'value="TRACE"' 'value="ERROR"' -- $file
done
And change the priority in the 'root' /usr/local/jboss/server/default/conf/log4j.xml element to:
<root>
<priority value ="warn" />
<appender-ref ref="CONSOLE"/>
<appender-ref ref="FILE"/>
</root>