RE: Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread sach.jain
Thanks.. Yeah, I was too thinking of putting at some central place. -Original Message- From: Wyss Patrick [mailto:[EMAIL PROTECTED] Sent: Thursday, June 07, 2007 9:17 PM To: Log4J Users List Subject: AW: Logging Strategy: Using multiple Loggers in same Class file >

AW: Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread Wyss Patrick
> > 2 Logger.getLogger in my class files. It solves my purpose but just > > wondering if my approach is fine? > > > It's perfect :-) > i'd put either the String "JobStatus" or the whole logger somewhere central like into a singleton (to make sure you can change the loggers name easily) but th

Re: Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread Maarten Bosteels
On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, In my application, I wanted to use logging this way: 1. Use general log4j logging statement which goes to a project log file (It works fine). For e.g logger.getLogger( "ToolCli.class" ); 2. A special log which needs to be written t

Re: Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread Dave Levitt
Wouldn't that application be the sort of thing to use 'nested diagnostic context' on? NDC.push("filterable trans start message"); and pop the context in the 'finally' after the commit or rollback. On 6/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Hi, In my application, I wanted to use

Logging Strategy: Using multiple Loggers in same Class file

2007-06-07 Thread sach.jain
Hi, In my application, I wanted to use logging this way: 1. Use general log4j logging statement which goes to a project log file (It works fine). For e.g logger.getLogger( "ToolCli.class" ); 2. A special log which needs to be written to a separate file. Here we are not concerned about the log