Wednesday, June 25, 2008

Change WAS 5.1.x default log level

1) Create a file "commons-logging.properties" in /properties
org.apache.commons.logging.LogFactory=org.apache.commons.logging.impl.LogFactoryImpl
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger

2) Edit logging.properties in /jre/lib
Change the line .level = INFO to .level = ERROR|WARN

# For example, set the com.mypackage.myapp logger to only log SEVERE
# messages:
com.mypackage.myapp.level = SEVERE

No comments: