axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Moley Harey" <moleyha...@gmail.com>
Subject Show Axis2 log messages in a separate file not in console
Date Fri, 22 Feb 2008 14:23:28 GMT
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/

Mime
View raw message