Since you didn't specify any path for your logfile (like
c:/put/log/file/here/axis.log), it is probably in the "working
directory" in effect when you started Tomcat. So probably
$TOMCAT_HOME%\bin.
-Eric.
Brecht Yperman wrote:
Hi,
I've got this webservice that throws an out-of-memory error somewhere in
the Axis-system, but I can't pinpoint where, so I'd like to enable the
logging.
Unfortunately I can't get it to work. I can't find a "axis.log" file
anywhere...
I've got the following files in
%TOMCAT_HOME%\webapps\axis\WEB-INF\classes\:
log4j.properties:
-----------------
# Set root category priority to INFO and its only appender to CONSOLE.
#log4j.rootCategory=3DINFO, CONSOLE
log4j.rootCategory=3DDEBUG, CONSOLE, LOGFILE
# Set the enterprise logger category to FATAL and its only appender to
CONSOLE.
log4j.logger.org.apache.axis.enterprise=3DFATAL, CONSOLE
# CONSOLE is set to be a ConsoleAppender using a PatternLayout.
log4j.appender.CONSOLE=3Dorg.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.Threshold=3DINFO
log4j.appender.CONSOLE.layout=3Dorg.apache.log4j.PatternLayout
log4j.appender.CONSOLE.layout.ConversionPattern=3D- %m%n
# LOGFILE is set to be a File appender using a PatternLayout.
log4j.appender.LOGFILE=3Dorg.apache.log4j.FileAppender
log4j.appender.LOGFILE.File=3Daxis.log
log4j.appender.LOGFILE.Append=3Dtrue
log4j.appender.LOGFILE.Threshold=3DDEBUG
log4j.appender.LOGFILE.layout=3Dorg.apache.log4j.PatternLayout
log4j.appender.LOGFILE.layout.ConversionPattern=3D%-4r [%t] %-5p %c %x -
%m%n
simplelog.properties:
---------------------
# Logging detail level,
# Must be one of ("trace", "debug", "info", "warn", "error", or
"fatal").
org.apache.commons.logging.simplelog.defaultlog=3Ddebug
commons-logging.properties:
---------------------------
# Uncomment the next line to disable all logging.
#org.apache.commons.logging.Log=3Dorg.apache.commons.logging.impl.NoOpLo
g
# Uncomment the next line to enable the simple log based logging
#org.apache.commons.logging.Log=3Dorg.apache.commons.logging.impl.Simple
Log
# Uncomment the next line to enable log4j based logging
org.apache.commons.logging.Log=3Dorg.apache.commons.logging.impl.Log4JLo
gger
Thanks in advance,
Brecht