Can custom appender override the log4j.xml configuration

2008-08-18 Thread Aneez Backer
Hi I am writing a custom JDBC appender for log4j for my application. I want this custom appender NOT to be affected in any way by the loggign levels / appenders in the application log4j.xml file. The custom Logger instance has only the one appender (the custom JDBC appender which I wrote). I

RE: ChainSaw - accessing a file on a VM

2008-08-18 Thread Scott Deboy
OK, here are the details: Follow the instructions here: http://logging.apache.org/chainsaw/distributionnotes.html The $user.home/.chainsaw folder will already exist, but you'll have to create the $user.home/.chainsaw/plugins folder and copy the required jars into that folder. I have these jars i

Re: Thread org.apache.log4j.xml.XMLWatchdog

2008-08-18 Thread Curt Arnold
On Aug 18, 2008, at 6:35 AM, Martin Kalany wrote: Hi folks, When I use the profiling tool off the Netbeans 6.1 IDE, I see lots of Threads that got the name "org.apache.log4j.xml.XMLWatchdog". Unfortunately I didn't find much documentation about that, that's why I'm posting here. My pro

Using a rolling log file across multiple .ear/.war files

2008-08-18 Thread Friedman, Brent
I have used log4j in the past, but I am trying to use it now for something where I am running into problems. Any suggestions/advice would be appreciated. I can't get a file logger to roll files. When the file reaches its preset size, it overwrites the original file instead of rolling. This s

Re: ChainSaw - accessing a file on a VM

2008-08-18 Thread Aux Board
Thank you to all those who kindly responded (ie Jacob, Scott and Curt). A question for Scott. I'm trying to use Jakarta Commons VFS but can't get it to work (java.lang.ClassNotFoundException: org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver)! Is there anywhere a straightforward 101 checklist

Thread org.apache.log4j.xml.XMLWatchdog

2008-08-18 Thread Martin Kalany
Hi folks, When I use the profiling tool off the Netbeans 6.1 IDE, I see lots of Threads that got the name "org.apache.log4j.xml.XMLWatchdog". Unfortunately I didn't find much documentation about that, that's why I'm posting here. My problem is that there's lot's of threads (about 5 per instance

RE: Passing log-time values to the Appender

2008-08-18 Thread Bender Heri
If your calling class which knows about the involved city runs in a separate thread context (for each city) you can use the MDC construct which is maintained on a per thread basis. Just put your city into MDC somewhere at the thread start when the city is known, and then in the MultifileAppender yo