Davide,
That's exactly what I did. I called mine NewPatternLayout (imaginative, huh!). It simply a wrapper around the PatternLayout that tells the appender that it will handle Throwable, and then doesn't.
--- regards --- Larry
At 03:38 AM 3/1/05, you wrote:
> Have you tried "%.80m" or similar? That should specify a maximum > message length of 80 characters. If the message is longer it will be > truncated from the beginning.
Yes I tried but the "truncated from the beginning" forbideen me from generating an meaningfull message within 160 chars. BTW with a simple example I saw that the exceptions goes directly on the trace, so I have to remove the printStackTrace. On the book, speaking about writing my own layout I see an example with a trivial MyLayout and a comment on the ignoresThrowable() method. I think the only viable solution is writing a custom layout.
Bye
-- Davide
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------
Larry Young
The Dalmatian Group
www.dalmatian.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
