Re: Recommended way of getting a logger

2008-06-12 Thread Curt Arnold
On Jun 12, 2008, at 10:56 AM, Jiri Pejchal wrote: Hi, is there any real difference between getting logger each time a message is being logged by calling Logger.getLogger() : Logger.getLogger(getClass()).info("message"); and putting logger as a class member: final Logger logger = Logger.get

what to log

2008-06-12 Thread Julius Davies
Richard J. Barbalace wrote the following in the "best practises" thread: --- [...] Do NOT log valuable information. By valuable, I mean information that has value to the organization or the users, as opposed to the developers. For instance, in medical applications

RE: log4j best practises

2008-06-12 Thread Barbalace, Richard
Thank you for writing this guide. I think it is a good start, and could be expanded some. > Separate files for different areas of interest While the focus here appears to be on logging for the developer with the intention of debugging or diagnosing problems, I think it is very important to point

Recommended way of getting a logger

2008-06-12 Thread Jiri Pejchal
Hi, is there any real difference between getting logger each time a message is being logged by calling Logger.getLogger() : Logger.getLogger(getClass()).info("message"); and putting logger as a class member: final Logger logger = Logger.getLogger(getClass()); and than in methods use: logger.i

Persist dynamic configuration changes to log4j.xml file

2008-06-12 Thread bjacobt
Hello, I'm using Log4j 1.2.15 along with Log4j extras companion. We use the extras because I want to use RollingFileAppender and then compress the file once it is rolled over. I also need to provide an interface to dynamically change log configuration, (MaxFileSize, Number Of rolled over files (M