Thanks, just what I was looking for.
My apologies to the group for posting on a topic that was so recently
discussed, but at the mail-archive.com, the suggested thread was actually a
child thread of the thread "[PATCH] DOMConfigurator.java". Still no excuse,
though.
-----Original Message-----
From: Robert Leftwich [mailto:[EMAIL PROTECTED]]
Sent: Friday, August 17, 2001 5:22 PM
To: LOG4J Users Mailing List
Subject: Re: Setting different patterns for priorities
At 10:03 AM 18/08/2001, DARYL HANDLEY wrote:
>Has anyone figured out a way to configure log4j so that the log pattern
will
>be influenced by the priority of the message logged ?
>
>When I log a DEBUG message, I want to print out the class name, method, and
>line number that the logging message occured on using the %l option for the
>pattern layout. When I log an INFO, WARN, ERROR, or FATAL, I do not want
>to include this information as I understand that the operation is expensive
>and do not wish to incur the extra cost.
>
>I have given though to turning it on/off for all messages while
>debugging/not debugging, but ultimately, I would like a way to control the
>pattern layout for each type of message.
Check the recent thread titled "Assigning Layouts to Priorities"
HTH
Robert
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]