You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by lou fox <fo...@yahoo.com> on 2003/08/26 00:41:20 UTC
Client Side Logging
How do you setup client side logging? I searched this mailing list and
saw: a message advising making changes to log4j.properties, and adding
it to the classpath ahead of axis.jar, but that didn't seem to help, is
there any other way I can turn on client side logging? Here's my classpath:
.;C:\java\eclipse\plugins\org.junit_3.8.1\junit.jar;C:\java\axis\lib\log4j.properties;C:\java\axis\lib\axis.jar;C:\java\axis\lib\commons-discovery.jar;C:\java\axis\lib\commons-logging.jar;C:\java\axis\lib\jaxrpc.jar;C:\java\axis\lib\saaj.jar;C:\java\axis\lib\log4j-1.2.8.jar;C:\java\axis\lib\xml-apis.jar;C:\java\axis\lib\xercesImpl.jar;C:\java\axis\lib\wsdl4j.jar
my log4j.properties file looks like this:
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=INFO
log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Is there another way to turn it on, or did I make an error?
Along the same topic, what code can I add to my client to write to the
same log file?