Paul, your updated log4j.properties file location (directory or jar) must 
appear prior to axis.jar.  Alternatively, you can remove log4j.properties 
from axis.jar...  Mine looks like (I've marked changed lines with '>>', 
note also that if you change the threshold from 'INFO' to 'DEBUG' for the 
console you will get A LOT of junk.. can slow things down, better to leave 
that as 'INFO' for console, and have the whole enchilada dumped to 
file..):

# Set root category priority to INFO and its only appender to CONSOLE.
>>#log4j.rootCategory=INFO, CONSOLE
>>log4j.rootCategory=DEBUG, 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=INFO
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=DEBUG
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - 
%m%n

*******************************************
Richard A. Sitze
IBM WebSphere WebServices Development




Paul Hunnisett <[EMAIL PROTECTED]>
11/08/2002 08:10 AM
Please respond to axis-dev
 
        To:     [EMAIL PROTECTED]
        cc: 
        Subject:        logging

 


I have attempted to set the logging level for Axis, but can't seem to
get it to work.  I looked at the Documentation and have edited the
log4j.properties file to display error messages.  However, I see nothing
on the console (I am definitely getting errors that generate logs - I
want to see those logs).  Does anyone have any tips on getting this to
work properly?  I have briefly checked and I don't think there are any
other properties files on my classpath.

Paul Hunnisett
www.lombok.org.uk






  • logging Paul Hunnisett
    • Richard Sitze

Reply via email to