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: We don;t need no stinking Axis logs
Date Tue, 12 Dec 2006 22:38:17 GMT

Hi Bob,

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/

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

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: Bob Corcoran [mailto:ibobbyc@yahoo.com]
Sent: Wednesday, 13 December 2006 9:19 AM
To: axis-user@ws.apache.org
Subject: We don;t need no stinking Axis logs


I wrote a standalone Java app that uses wsdl2java
generated web service clients. I also set up logging
using log4j. Axis is filling up my log file, creating
a HUGE file each time I run the app, with logging
information that I have no use for. Nowhere did I
specify that I wanted Axis to log to this file. I also
find that I have to include commons-logging as well as
log4j because Axis will throw an exception if it is
not there. Why is Axis tied to a logging
implementation and how do I turn off Axis logging?

Here are example messages:
2006-12-12 17:08:08,764 - Enter:
SOAPPart::getAsSOAPEnvelope()
2006-12-12 17:08:08,764 -
org.apache.axis.i18n.resource::handleGetObject(currForm)
2006-12-12 17:08:08,764 - current form is
FORM_SOAPENVELOPE
2006-12-12 17:08:08,764 - MessageContext:
setTargetService()
2006-12-12 17:08:08,764 - MessageContext:
setServiceHandler(null)
2006-12-12 17:08:08,779 -
org.apache.axis.i18n.resource::handleGetObject(register00)
2006-12-12 17:08:08,779 - register 'soapenv' -
'http://schemas.xmlsoap.org/soap/envelope/'
2006-12-12 17:08:08,779 - NSPush (32)
2006-12-12 17:08:08,779 - NSPush (32) 


 
____________________________________________________________________________
________
Any questions? Get answers on any topic at www.Answers.yahoo.com.  Try it
now.

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org

Mime
View raw message