axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Roytman <michael.royt...@ualloyalty.com>
Subject How to enable log4j logging with Axis?
Date Wed, 14 Aug 2002 15:21:17 GMT
Hello,

How do I set up log4j logging with Axis?
I have beta3 with Tomcat4.0.4 and JDK1.4 on W2K box.

I followed old threads in maling archives but no luck.
1) I removed log4j.properties from axis.jar 
2) Put log4j.properties in webapps\axis\WEB-INF\classes directory.
Here is what it looks like:

log4j.rootCategory=INFO, CONSOLE

# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=DEBUG
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

3) I also added CATALINA_OPTS to catalina.bat startup script:
set
CATALINA_OPTS=-Dlog4j.configuration=C:\jakarta-tomcat-4.0.4\webapps\axis\WEB
-INF\classes\log4j.properties

4) restart Tomcat, try to deploy/undeploy/access services, I do not see any
log4j logging output either on 
the console or in axis.log file. BTW, where axis.log file would be written
to, in tomcat\logs directory?

I hope somebody out there has gone through this exercise before. Any
step-by-step help is appreciated.
Thanks,

Michael

Mime
View raw message