You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Michael Schmitz <Mi...@tietoenator.com> on 2006/12/13 13:39:32 UTC

how to enable server-side logging with AXIS2

Hello all,

I just deployed the AXIS2 Web application on our Tomcat (v5.5). Then I
changed

  <CATALINA_HOME>/webapps/axis2/WEB-INF/classes/commons-logging.properties

to enable logging via log4j. The only non-comment line in this file is

  org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger


The file

  <CATALINA_HOME>/webapps/axis2/WEB-INF/classes/classes/log4j.properties

contains

  log4j.rootCategory=DEBUG, LOGFILE
  log4j.logger.org.apache.axis2.enterprise=DEBUG
  log4j.logger.de.hunsicker.jalopy.io=DEBUG
  log4j.logger.httpclient.wire.header=DEBUG
  log4j.logger.org.apache.commons.httpclient=DEBUG

  log4j.appender.LOGFILE=org.apache.log4j.FileAppender
  log4j.appender.LOGFILE.File=/var/log/tomcat5/axis2.log
  log4j.appender.LOGFILE.Append=true
  log4j.appender.LOGFILE.layout=org.apache.log4j.PatternLayout
  log4j.appender.LOGFILE.layout.ConversionPattern=%d [%t] %-5p %c %x - %m%n

All files are readable for Tomcat which starts without any complaints.

But while I see Tomcat logs using log4j, the AXIS2 Web application
does not. 'strace' shows my
"axis2/WEB-INF/classes/classes/commons-logging.properties" has been
read, but "axis2/WEB-INF/classes/classes/log4j.properties" is not
read.

Where is my mistake?

Thanks for your help,
Michael.

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