Hi Rob,

check catalina.out, there should be some message of
log4j complaining if it has been loaded but cannot work.

You may also add -Dlog4.debug to the java command line,
this makes log4j output debug messages on stdout.

If you don't see any output of log4j, then I'd suggest
calling java with -verbose:class, this makes java
print information about every class it loads and from
which source it loaded it. Grep for log4j to see if it
is at all loaded.

Georg


Rob Tanner wrote:
Hi,

I was originally planning to move to Tomcat 6 but backed off for a
number of reasons.  Now I have Tomcat 5.5.9 installed an working, except
for logging (and one other problem that I might be able to resolve on my
own if only I could get logging to work).
I have never configured Tomcat to log using log4j (Tomcat 4.x's built-in
was sufficient).  Following the instructions on the website
(http://tomcat.apache.org/tomcat-5.5-doc/logging.html),  I creating a
log4j.properties file and placed it in common/classes -- the only change
I made on the example on the webpage was to replace a variable with an
absolute path:

log4j.rootLogger=DEBUG, R
log4j.appender.R=org.apache.log4j.RollingFileAppender
log4j.appender.R.File=/var/apache/jakarta-tomcat-5.5.9/logs/tomcat.log
log4j.appender.R.MaxFileSize=10MB
log4j.appender.R.MaxBackupIndex=10
log4j.appender.R.layout=org.apache.log4j.PatternLayout
log4j.appender.R.layout.ConversionPattern=%p %t %c - %m%n


I then put log4j-1.2.7.jar and commons-logging-1.1.jar jarfiles in
common/lib and started Tomcat. The instructions don't say anything about
doing anything else and I've not done very much with log4j other than
use it to enable syslog logging in various applications, but it's not
working.

Any ideas?

Thanks,
Rob




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

Reply via email to