You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by "Abramson, Rami" <ra...@terayon.com> on 2002/12/19 16:42:39 UTC
How to log Exceptions with PatternLayout ?...
Hello,
Have found in log4j docs that:
"SimpleLayout and PatternLayout classes ignore Java Throwable errors and
exceptions. HTMLLayout and XMLLayout handle them."
Is it possible somehow to make the Throwables and Exceptions seen in the
Fatal debug level when working with PatternLayout?
thank you,
Rami A.
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: How to log Exceptions with PatternLayout ?...
Posted by Daniel Serodio <da...@checkforte.com.br>.
On Thu, 2002-12-19 at 13:42, Abramson, Rami wrote:
> Hello,
>
> Have found in log4j docs that:
> "SimpleLayout and PatternLayout classes ignore Java Throwable errors and
> exceptions. HTMLLayout and XMLLayout handle them."
>
> Is it possible somehow to make the Throwables and Exceptions seen in the
> Fatal debug level when working with PatternLayout?
I think what you need is: logger.error("Crash!", exception) instead of
logger.error(exception)
>
> thank you,
>
> Rami A.
--
[]'s
Daniel Serodio
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>