Configuring Tomcat application's logging

2008-07-16 Thread V Jayakumar
Hello OS : Linux + Tomcat 5.5 Logs from my application deployed in Tomcat being written to catalina.out with logging level as DEBUG I want to change the logging level for my application to ERROR Created a directory as: /home/tomcat/webapps/appName/WEB-INF/classes Had created a log4j.

Logging NDC value

2008-07-16 Thread Duseja, Sushil
Hello, I used event.getNDC() to log the NDC value (where event is a org.apache.log4j.spi.LoggingEvent object), but it's fetching - 'null'. Similarly, I used event.getThrowableStrRep() to log the exception value but that is again fetching a null. Can anyone let me know the correct way of doing the

Re: Logging NDC value

2008-07-16 Thread Curt Arnold
On Jul 16, 2008, at 8:29 AM, Duseja, Sushil wrote: Hello, I used event.getNDC() to log the NDC value (where event is a org.apache.log4j.spi.LoggingEvent object), but it's fetching - 'null'. Similarly, I used event.getThrowableStrRep() to log the exception value but that is again fetching a

log file rolling problem

2008-07-16 Thread Vishist Mandapaka
Hi, We're using log4j through commons-logging framework. I'm looking at a strange behavior where rolling of log files is not happening in Websphere process server 6.0.2.23 version on Windows 2003/ JDK 1.4.x. The same log4j configuration is used in Webshere portal, BEA Weblogic and its working fi

DailyRollingAppender doing strange things with log4j-1.2.14

2008-07-16 Thread Robert Nicholson
I'm noticying right now the following situation -rw-r--r-- 1 311170 Jul 16 14:00 name.log -rw-r--r-- 1 455880 Jul 16 14:00 name.log.2008-07-15 What you should see is that today's log is actively overwriting yesterday's rolled log. So yesterdays log is history as it's been overwritten. Ca

Re: DailyRollingAppender doing strange things with log4j-1.2.14

2008-07-16 Thread Thorbjørn Ravn Andersen
Robert Nicholson skrev den 16-07-2008 21:03: I'm noticying right now the following situation -rw-r--r-- 1 311170 Jul 16 14:00 name.log -rw-r--r-- 1 455880 Jul 16 14:00 name.log.2008-07-15 What you should see is that today's log is actively overwriting yesterday's rolled log. So yesterd

Circular Dependency through Appender

2008-07-16 Thread Ivan Alencar
Hi, I've created a log4j appender (by extending AppenderSkeleton) which uses a component that depends on log4j. Naturally when I set log4j to use this appender I get a circular dependency, because log4j needs the appender that needs the component that needs the log4j that needs... stack ov

Re: DailyRollingAppender doing strange things with log4j-1.2.14

2008-07-16 Thread Curt Arnold
On Jul 16, 2008, at 2:03 PM, Robert Nicholson wrote: I'm noticying right now the following situation -rw-r--r-- 1 311170 Jul 16 14:00 name.log -rw-r--r-- 1 455880 Jul 16 14:00 name.log.2008-07-15 What you should see is that today's log is actively overwriting yesterday's rolled log.