tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Richard Mixon" <rnmi...@qwest.net>
Subject RE: Logging
Date Wed, 18 Oct 2006 20:43:54 GMT
Helmut,

Where did you look for log files? Often they will be in the logs directory
under the Tomcat home directory. Sometimes the standard output goes to a
file called catalina.out.

To help further you could supply:
 - Tomcat version, there should be a file called RELEASE_NOTES somewhere
under the Tomcat home directory (aka CATALINA_HOME).
 - What OS and version you are running.
 - Anything else that might give us a bit more context within which to help.

-----Original Message-----
From: Helmut Schneider [mailto:jumper99@gmx.de] 
Sent: Wednesday, October 18, 2006 6:23 AM
To: users@tomcat.apache.org
Subject: Logging

Hi,

I'm not very aware of tomcat but I 'inherited' a webserver with tomcat where
an application does not seem to work anymore. So the first thing I wanted to
do is to look at the logfiles - no logfiles.

I looked at conf/server.xml and found:

<Valve className="org.apache.catalina.valves.AccessLogValve"
directory="/var/log/tomcat"  prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>
[...]
<Valve className="org.apache.catalina.valves.FastCommonAccessLogValve"
directory="/var/log/tomcat"  prefix="localhost_access_log." suffix=".txt"
pattern="common" resolveHosts="false"/>

/var/log/tomcat/ does exist, is writable for tomcat and two files are
created at startup: stdout.log and stderr.log. That's it.

I found an article about log4j so I created common/classes/log4j.properties
with:

log4j.rootLogger=INFO, R
log4j.appender.A1=org.apache.log4j.ConsoleAppender
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%d [%t] %-5p %c - %m%n
log4j.appender.R=org.apache.log4j.DailyRollingFileAppender
log4j.appender.R.DatePattern='.'yyyy-MM-dd
log4j.appender.R.File=/var/log/tomcat/tomcat.log
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%d [%t] %-5p %c - %m%n


Nothing.

Any ideas are appreciated.

Thanks, Helmut 


---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe,
e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message