axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alick Buckley <Alick.Buck...@lansa.com.au>
Subject RE: How to get logging working in Axis 1.3
Date Tue, 19 Dec 2006 21:12:26 GMT
Here is a sample log4j properties file. 

Set the Java System property log4j.configuration to your configuration file.


        System.setPropery ( "log4j.configuration", "log4j.properties" ) ; 

http://logging.apache.org/log4j/docs/
<http://logging.apache.org/log4j/docs/>  

============================================================================
===== 

log4j.properties 

# 
# This file controls the logging strategy 
# 
# Levels - DEBUG, INFO, WARN, ERROR, FATAL 

log4j.debug=true 
log4j.rootLogger=INFO, STDOUT 

# log4j.logger.org.apache.axis=DEBUG, FILE 
# log4j.additivity.org.apache.axis=false 

# log4j.logger.org.apache.commons.httpclient=DEBUG, FILE 
# log4j.additivity.org.apache.commons.httpclient=false 

# log4j.logger.org.apache.axis.transport.http.HTTPSender=DEBUG, FILE 
# log4j.additivity.org.apache.axis.transport.http.HTTPSender=false 

log4j.appender.STDOUT=org.apache.log4j.ConsoleAppender 
log4j.appender.STDOUT.threshold=INFO 
log4j.appender.STDOUT.layout=org.apache.log4j.PatternLayout 
log4j.appender.STDOUT.layout.ConversionPattern=[%d{ISO8601}] [%-5p] [%c{2}]
%M - %m%n 

log4j.appender.FILE=org.apache.log4j.FileAppender 
log4j.appender.FILE.file=LOG4J.TXT 
log4j.appender.FILE.append=false 
log4j.appender.FILE.threshold=DEBUG 
log4j.appender.FILE.layout=org.apache.log4j.PatternLayout 
log4j.appender.FILE.layout.ConversionPattern=[%d{ISO8601}] [%-5p] [%c{2}] %M
- %m%n 

============================================================================
=========== 


-----Original Message-----
From: Patel, Nirmal [mailto:nirmal.patel@thus.net]
Sent: Wednesday, 20 December 2006 6:57 AM
To: 'axis-user@ws.apache.org'
Subject: How to get logging working in Axis 1.3



I am a newbie. I want Axis to read my log4j.properties. How do I do that?

 

Nirmal Patel


Mime
View raw message