Put this as the contents of log4j.properties and place it in the src directory of your web service:
 
# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=DEBUG, CONSOLE
# log4j.rootCategory=INFO, CONSOLE, LOGFILE
 

# Set 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=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
 
 
In a message dated 7/6/2004 1:26:55 PM Eastern Standard Time, [EMAIL PROTECTED] writes:

i have the same problem but i'm ignoring it for the meantime.  here's a link to the log4j manual that talks about configuration.  hope this helps.

http://logging.apache.org/log4j/docs/manual.html


-----Original Message-----
From: Baiss Eric Magnusson [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 06, 2004 12:52 PM
To: AxisUser
Subject: Please initialize the log4j system properly


In the first encounter of this line, which is the first use of Axis:

  org.apache.axis.client.Service service = new
org.apache.axis.client.Service();

The following 2 msgs are written to console:

   log4j:WARN No appenders could be found for logger
(org.apache.axis.i18n.ProjectResourceBundle).
   log4j:WARN Please initialize the log4j system properly.

I have <log4j.properties> in the same directory as the axis jars.

What else needs to be done?
----
Baiss Eric Magnusson
<http://www.Track-Your-Finances.com>
<http://www.CascadeWebDesign.com>

 

Reply via email to