[prev in list] [next in list] [prev in thread] [next in thread]
List: log4j-user
Subject: Re: Custom subject with SMTPAppender?
From: Ceki =?iso-8859-1?Q?G=FClc=FC?= <ceki () qos ! ch>
Date: 2004-12-23 10:29:49
Message-ID: 6.0.3.0.0.20041223112545.03f16e48 () mail ! qos ! ch
[Download RAW message or body]
At 04:44 AM 12/23/2004, Kevin A. Burton wrote:
>How about this... if the %throwable isn't defined we generate one? Is
>that a bad overloading of the %throwable behavior you think?
You do not need to override %throwable. Just define a new conversion word,
say %stackTrace, possibly with options.
Thereafter, you could write "%d %level [%t] - %m%n%stackTrace{3}". Each log
line would be followed by with 3 lines of stack trace. Have a look
PatternLayout, PatternParser, they are designed to easily accept new
pattern words.
HTH,
>I can supply a patch if necessary. I really want this feature.
>
>Kevin
>
>--
--
Ceki Gülcü
The complete log4j manual: http://qos.ch/log4j/
---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic