Re: log4j best practises - log headers

2008-06-23 Thread Lilianne E. Blaze
Julius Davies wrote: On Tue, Jun 10, 2008 at 10:41 PM, Lilianne E. Blaze <[EMAIL PROTECTED]> wrote: Hello, One more thing - why should "A Log Rotation Best Practice That Is Currently Not Possible" be impossible? Either 1) Implement it extending rolling file appender. Should be reasonably eas

RE: log4j best practises

2008-06-15 Thread Scott Deboy
: Sun 6/15/2008 7:28 AM To: Log4J Users List Subject: Re: log4j best practises Hi Julius, My 2cents from mostly a "let's help the support staff" view: -The Wabbit >> Greppable Logs >> [+ Separate files of different areas of interest] To me this eliminates a whole wo

Re: log4j best practises

2008-06-15 Thread Wascally Wabbit
Hi Julius, My 2cents from mostly a "let's help the support staff" view: -The Wabbit >> Greppable Logs >> [+ Separate files of different areas of interest] To me this eliminates a whole world of log diagnostic tools. Limiting support tools to 'grep' makes sense of very controlled applications on

Re: log4j best practises

2008-06-15 Thread Wascally Wabbit
ore than likely guilty of all 3! Cheers, J. -Original Message----- From: Julius Davies [mailto:[EMAIL PROTECTED] Sent: 06 June 2008 05:28 To: log4j-user@logging.apache.org Subject: log4j best practises Here's a page of what I consider log4j best practises: http://juliusdavies.ca/logg

RE: log4j best practises

2008-06-12 Thread Barbalace, Richard
giving an example of the XML format of the log4j configuration file as well. Thanks again. Richard J. Barbalace > -Original Message- > From: Julius Davies [mailto:[EMAIL PROTECTED] > To: Log4J Users List > Subject: log4j best practises > > Here's a page of what I

Re: log4j best practises

2008-06-11 Thread Curt Arnold
On Jun 11, 2008, at 12:52 AM, Julius Davies wrote: On Tue, Jun 10, 2008 at 10:41 PM, Lilianne E. Blaze <[EMAIL PROTECTED]> wrote: Hello, One more thing - why should "A Log Rotation Best Practice That Is Currently Not Possible" be impossible? Either 1) Implement it extending rolling file ap

RE: log4j best practises - logger.isDebugEnabled()

2008-06-11 Thread Jason Irwin
>if(logger.isDebugEnabled()) { > logger.debug("Entry number: " + i + " is " + String.valueOf(entry[i])); } >Personally, I think that is an absolute abomination, and a major failure >of the logging framework / Java combination. It certainly makes the code ugly. If I am going to use an "isDebugEna

Re: log4j best practises

2008-06-10 Thread Julius Davies
On Tue, Jun 10, 2008 at 10:41 PM, Lilianne E. Blaze <[EMAIL PROTECTED]> wrote: > Hello, > One more thing - why should "A Log Rotation Best Practice That Is Currently > Not Possible" be impossible? > > Either > 1) Implement it extending rolling file appender. Should be reasonably easy. > Disadvantag

Re: log4j best practises

2008-06-10 Thread Lilianne E. Blaze
Julius Davies wrote: Here's a page of what I consider log4j best practises: http://juliusdavies.ca/logging.html Any comments are very welcome! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: log4j best practises - logger.isDebugEnabled()

2008-06-10 Thread Peter Nann
[mailto:[EMAIL PROTECTED] Sent: Wednesday, 11 June 2008 3:16 PM To: Log4J Users List Subject: Re: log4j best practises - logger.isDebugEnabled() On Jun 10, 2008, at 11:42 PM, Peter Nann wrote: > > I am only a peripheral Log4J User, however my peers recently advised > that all our logging

Re: log4j best practises - logger.isDebugEnabled()

2008-06-10 Thread Curt Arnold
On Jun 10, 2008, at 11:42 PM, Peter Nann wrote: I am only a peripheral Log4J User, however my peers recently advised that all our logging should be written like: if(logger.isDebugEnabled()) { logger.debug("Entry number: " + i + " is " + String.valueOf(entry[i])); } Personally, I think that

Re: log4j best practises

2008-06-10 Thread Julius Davies
frameworks, make sure you use the best one! Or else you might have to switch your "log generalization framework"! (By the way, the best LGF doesn't show up until the year 2888, so I'm not sure what we should do

RE: log4j best practises - logger.isDebugEnabled()

2008-06-10 Thread Peter Nann
e- From: Lilianne E. Blaze [mailto:[EMAIL PROTECTED] Sent: Wednesday, 11 June 2008 2:05 PM To: Log4J Users List Subject: Re: log4j best practises Hello, Quite an useful text. One thing I can't agree with: "I recommend skipping the generalization if possible. You will have more contro

Re: log4j best practises

2008-06-10 Thread Lilianne E. Blaze
Lilianne E. Balze Julius Davies wrote: Here's a page of what I consider log4j best practises: http://juliusdavies.ca/logging.html Any comments are very welcome! - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: log4j best practises

2008-06-10 Thread Julius Davies
NDC/MDC is on my "must learn about this" list. I haven't used them. A quick read of the wiki has me suspecting that MDC's are more generally applicable. http://wiki.apache.org/logging-log4j/NDCvsMDC On Tue, Jun 10, 2008 at 2:27 AM, Jason Irwin <[EMAIL PROTECTED]> wrote: >>3. Best practices sho

RE: log4j best practises

2008-06-10 Thread Jason Irwin
>3. Best practices should include use of NDC. Now, here's a question. Why NDC rather than MDC? And how do you decide when one is more appropriate than the other? J. - To unsubscribe, e-mail: [EMAIL PROTECTED] For addition

Re: log4j best practises

2008-06-06 Thread Julius Davies
ce. > > In the section entitled "Use Log4j", you mention various logging > systems such as j.u.l, commons-logging and even logKit which > practically no one uses anymore. Curiously enough, you did not mention > SLF4J and logback. Was it because you were not aware that they >

Re: log4j best practises

2008-06-06 Thread Ceki Gulcu
ck. Was it because you were not aware that they existed, or was it some other reason? Julius Davies wrote: Here's a page of what I consider log4j best practises: http://juliusdavies.ca/logging.html Any comments are very welcome! -- Ceki Gulcu http://logback.qos.ch/ A generic, reliable,

Re: log4j best practises

2008-06-06 Thread Curt Arnold
On Jun 6, 2008, at 11:09 AM, Julius Davies wrote: Hi, Douglas, Jason, Jason - thanks for your feedback! I'll definitely incorporate some of that, especially around what's appropriate for each level. Douglas - it's not as bad as writing my own layout, but it will make some people uncomfortabl

Re: log4j best practises

2008-06-06 Thread Julius Davies
Hi, Douglas, Jason, Jason - thanks for your feedback! I'll definitely incorporate some of that, especially around what's appropriate for each level. Douglas - it's not as bad as writing my own layout, but it will make some people uncomfortable! Here's the trick for changing the level strings:

Re: log4j best practises

2008-06-06 Thread Douglas_E_Wegscheid
lius Davies" <[EMAIL PROTECTED]> wrote on 06/06/2008 12:28:11 AM: > Here's a page of what I consider log4j best practises: > > http://juliusdavies.ca/logging.html > > > Any comments are very welcome! > > > -- > yours, > > Ju

RE: log4j best practises

2008-06-06 Thread Jason Irwin
3! Cheers, J. -Original Message----- From: Julius Davies [mailto:[EMAIL PROTECTED] Sent: 06 June 2008 05:28 To: log4j-user@logging.apache.org Subject: log4j best practises Here's a page of what I consider log4j best practises: http://juliusdavies.ca/log

log4j best practises

2008-06-05 Thread Julius Davies
Here's a page of what I consider log4j best practises: http://juliusdavies.ca/logging.html Any comments are very welcome! -- yours, Julius Davies 250-592-2284 (Home) 250-893-4579 (Mobile) http://juliusdavies.ca/ ---