Hi,

I have implemented and Axis2 service and I would like to display all log
messages in a separate file that the catalina.out file of my Tomcat, to do
so I am using Apache Commons library.

The problem is that I have disabled the "console" option and enabled the
"log file" one but it does not create the new log file into ~/tomcat/logs
folder and still is showing all messages into catalina.out...

Here is my log4j.properties file code:

===========
# Set root category priority to INFO and its only appender to LOGFILE.
log4j.rootCategory=INFO, LOGFILE

# Set the enterprise logger priority to FATAL
log4j.logger.org.apache.axis2.enterprise=FATAL
log4j.logger.de.hunsicker.jalopy.io=FATAL
log4j.logger.httpclient.wire.header=FATAL
log4j.logger.org.apache.commons.httpclient=FATAL

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=%d %-5p %c - %m%n

# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=org.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=/home/users/tomcat/logs/myservice.log
log4j.appender.LOGFILE.Append=true
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n
===========

Any idea of what is happening?

-- 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Para atras, solo para tomar impulso!

http://chromewaves.blogspot.com/

Reply via email to