How to turn Axis logging off
807591Jun 11 2008 — edited Jun 11 2008Hi,
I'm using Axis 1.3 with my web apps running on Tomcat 5.5. The logging that Axis does is way too much, I can barely find my apps' log statements. I believe Axis is using log4j and I have tried a bunch of configuration parameters inside the log4j.properties file with no luck - I have the log4j.properties file in Tomcat's conf directory as well as my app's WEB-INF/classes directory, where should it go for it to work properly?
I'm basically testing a driver app to send information to my web server (Tomcat). Both the driver app and the server code is logging huge files, most of the data is from Axis.
Please give me a hand as to how to stop the Axis logging so that I would only see my apps' log statements. Here are the parameters that I have found from various google searches, none of them seem to stop the log data that is going to my log file.
Please help.
Thanks - Alan
################################
log4j.logger.org.apache.log4j=OFF
org.apache.axis.AxisEngine=OFF
org.apache.axis.transport.http.AxisServlet=OFF
log4j.logger.org.apache.axis=off
log4j.logger.org.apache.axis.encoding=fatal
log4j.logger.org.apache.axis.utils=fatal
log4j.logger.org.apache.axis.message=fatal
log4j.category.org.apache.axis=OFF
# Uncomment the next line to disable all logging.
org.apache.commons.logging.Log=org.apache.commons.logging.impl.NoOpLog
# Uncomment the next line to enable the simple log based logging
#org.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog
# Uncomment the next line to enable log4j based logging
#org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
###################################
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=FATAL, CONSOLE
#log4j.rootCategory=INFO, CONSOLE, LOGFILE
# Set the enterprise logger category to FATAL and its only appender to CONSOLE.
log4j.logger.org.apache.axis.enterprise=FATAL, CONSOLE
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=FATAL
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=- %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=axis.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.Threshold=FATAL
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n