Hi John-
set your log4j.properties rootLogger to be OFF
log4j.rootLogger=OFF, logfile
options are
change your level to ALL The ALL has the lowest possible rank and is
intended to turn on all logging.
DEBUG The DEBUG Level designates fine-grained
informational events that are most useful to debug an application
ERROR The ERROR level designates error events that
might still allow the application to continue running
FATAL The FATAL level designates very severe error
events that will presumably lead the application to abort
INFO The INFO level designates informational
messages that highlight the progress of the application at coarse-grained
level
TRACE The TRACE Level designates finer-grained
informational events than the DEBUG
OFF The OFF has the highest possible rank and
is intended to turn off logging.
http://www.jdocs.com/log4j/1.2.13/api-index.html?m=class&p=org.apache.log4j&c=PropertyConfigurator&render=classic
HTH
Martin
----- Original Message -----
From: "John Pedersen" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Saturday, May 31, 2008 3:24 PM
Subject: log4j problem
Hi,
I'm still trying to fix the problem with the welcome file not working, but
my logging going wrong has trumped that little problem.
I had it working fine using log4j - here's my properties file:
log4j.rootLogger=info, logfile
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%d %p [%c] - <%m>%n
log4j.appender.logfile=org.apache.log4j.RollingFileAppender
log4j.appender.logfile.File=C:/Tomcat 6.0/logs/sf.log
log4j.appender.logfile.MaxFileSize=1024KB
# Keep three backup files
log4j.appender.logfile.MaxBackupIndex=3
log4j.appender.logfile.layout=org.apache.log4j.PatternLayout
#Pattern to output : date priority [category] - <message>line_separator
log4j.appender.logfile.layout.ConversionPattern=%d{ABSOLUTE} %5p
%c{1}:%L -
%m%n
log4j.logger.com.starfriend=DEBUG
org.apache.catalina.startup.ContextConfig = SEVERE
org.apache.catalina.startup.HostConfig = SEVERE
org.apache.catalina.session.ManagerBase = SEVERE
org.apache.catalina.core.AprLifecycleListener=SEVERE
log4j.logger.org.apache.catalina=SEVERE
This gave me just the logging I was after. After a reload, all that good,
as
expected logging disappeared, and now I just get DEBUG output such as:
20:13:10,722 DEBUG WebappClassLoader:1238 -
loadClass(com.starfriend.astro.drawings.DrawingsController, false)
20:13:10,723 DEBUG WebappClassLoader:1254 - Returning class from cache
and
DEBUG HostConfig:1088 - Checking context[/host-manager] reload resource
C:\Tomcat 6.0\conf\web.xml
20:20:34,881 DEBUG HostConfig:1088 - Checking context[/host-manager]
reload
resource C:\Tomcat 6.0\webapps\host-manager\META-INF\context.xml
20:20:34,883 DEBUG WebappClassLoader:704 - modified()
20:20:34,941 DEBUG ManagerBase:680 - Start expire sessions StandardManager
at 1212261634941 sessioncount 0
20:20:34,942 DEBUG ManagerBase:688 - End expire sessions StandardManager
processingTime 1 expired sessions: 0
Mb's of the stuff.
I've had this problem before and it went away without my finding out the
cause. Now that same issue is back. I have reloaded, stopped and started
Tomcat, looked all around for files that shouldn't be there, but no luck.
Has anyone come across this error before?
Thanks,
John
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]