RE: AdminClient + log4j

2005-05-18 Thread Hewitt, Christopher



Thanks 
Tony,
 
I 
think my problem was not including the "file:" part in front of the path to the 
properties file.
 
The 
log still seems pretty sparse though.  ie, if an axisfault occurs during 
deployment, it is only printed, and not actually logged through 
log4j.
I will 
take a look at the src to see if that really is the case.  (Can anyone else 
confirm if it is or isn't?)
 
thanks 
again,
 
--Chris
 
 

  -Original Message-From: Tony Fernandes 
  [mailto:[EMAIL PROTECTED]Sent: Tuesday, May 17, 2005 4:18 
  AMTo: axis-user@ws.apache.orgSubject: Re: AdminClient + 
  log4j
  This configuration file works with both méthods ( see attachments)
  under windows and solaris.
   
  -Dlog4j.configuration=file:/home//log4j.properties or CLASSPATH
  + restart your application server 
  On 5/16/05, Hewitt, 
  Christopher <[EMAIL PROTECTED]> 
  wrote: 
  Hi,Does 
anyone know how to get the AdminClient to use log4j?I just can't seem to 
get it to work. I've added a log4j.properties to the classpath, as well 
as passing in the configuration file via 
-Dlog4j.configuration=xxx.Neither seem to work, and AdminClient's 
output only appears to be print statements to stdout. Any help would 
be appreciated.Thanks.Chris HewittEmail: [EMAIL PROTECTED]


Re: AdminClient + log4j

2005-05-17 Thread Tony Fernandes
This configuration file works with both méthods ( see attachments)
under windows and solaris.
 
-Dlog4j.configuration=file:/home//log4j.properties or CLASSPATH
+ restart your application server 
On 5/16/05, Hewitt, Christopher <[EMAIL PROTECTED]> wrote:
Hi,Does anyone know how to get the AdminClient to use log4j?I just can't seem to get it to work.
I've added a log4j.properties to the classpath, as well as passing in the configuration file via -Dlog4j.configuration=xxx.Neither seem to work, and AdminClient's output only appears to be print statements to stdout.
Any help would be appreciated.Thanks.Chris HewittEmail: [EMAIL PROTECTED]# Set root category priority to INFO and its only appender to CONSOLE.
log4j.rootCategory=INFO, CONSOLE
#log4j.rootCategory=INFO, 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