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
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
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
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
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
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
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