Re: How to implement multiple loggers per class?

2006-04-24 Thread James Stauffer
You may be able to use the same loggers for 1 & 2. You could send all logs to a file appender and an email appender with a threshold set on the email appender. On 4/21/06, Barbalace, Richard <[EMAIL PROTECTED]> wrote: > Hello, all. > > I am working on a large-scale web application where we want c

RE: How to implement multiple loggers per class?

2006-04-24 Thread Bender Heri
Hi you are free to choose a logger's name as you like. The convenience to name the loggers by the FQN of the surrounding class is useful for your first goal (debugging log). To treat some special log outputs I suggest to introduce a separate logger with a clear name, let's say "UserAudit". The

Re: How to implement multiple loggers per class?

2006-04-22 Thread Jacob Kjome
They can all be static loggers, just like you have done. Just give them a different naming scheme. private static Logger logger = Logger.getLogger(MyUserLoginClass.class); private static Logger monitor = Logger.getLogger("monitor"); private static Logger auditor = Logger.getLogger("auditor