Re: NDC, MDC, or log.debug( new MyLogObj( "my message", context ) )?

2008-08-05 Thread Paul Smith
3) Use MDC. private static final Logger log = Logger.getLogger( "job" ); Integer jobId = new Ingteger(1); MDC.put( "jobid", jobId ); log.error( "Job failed!", exception ); MDC.remove( "jobid" ); This would be my recommended approach from experience. O

Re: Synchronisation issue with log4j

2008-08-05 Thread Christian Delbe
Everything is fine with two different layouts. Thank you very much ! Christian. Ceki Gulcu wrote: Hello Christian, Thank you for taking the time to write a test case reproducing the problem. As it stands, the problem arises from the fact that the two file appenders share the same layout whi

Re: Synchronisation issue with log4j

2008-08-05 Thread Ceki Gulcu
Hello Christian, Thank you for taking the time to write a test case reproducing the problem. As it stands, the problem arises from the fact that the two file appenders share the same layout which is incorrect. Layouts are not meant to be shared. HTH, Christian Delbe wrote: Hi, I encounter

Synchronisation issue with log4j

2008-08-05 Thread Christian Delbe
Hi, I encountered a synchronization issue with log4j 1.2.15 : if two threads write into 2 loggers that are plugged into 2 FileAppenders, the two resulting files are mixed up... Here is the code of my simple test. The problem is that at the end of the execution, the file "log1" contains some line

RE: SocetReceivers problem

2008-08-05 Thread Scott Deboy
If you don't provide a 'name' for the receiver, you won't see it in the plugin registry.. Scott Deboy COMOTIV SYSTEMS 111 SW Columbia Street Ste. 950 Portland, OR 97201 Telephone: 503.224.7496 Cell: 503.997.1367 Fax:503.222.0185 [EMAIL PROTECTED] www.comotivsystems

SocetReceivers problem

2008-08-05 Thread Ginzburg Helena
Hi All I'm new in Chainsaw v2. I added new SocetReceivers and Shutdown this receivers and remove it from Plagin registry. After this I add new SocetReceiver on the same port. I think the first is working and the second cannot start. I don't see new tab for my new Receiver. Can I see all

I have to make a new log file after the start of the application

2008-08-05 Thread techie_india
Hi, I have to make a new log file after every start of the system has anybody done it before Please let me know Thanks and Regards Anshuman Srivastava -- View this message in context: http://www.nabble.com/I-have-to-make-a-new-log-file-after-the-start-of-the-application-tp18829406p18829406.ht