logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Simon Gibbs <simon.gi...@cantorva.com>
Subject Re: How can I write a custom appender to supports Throwable as a second parameter?
Date Mon, 28 Sep 2009 16:51:24 GMT
Alexander Spitzer wrote:
> if they use
> logger.error("this is an error",myException)
>   
.. then the exception is added to the event and passed to the appender
as 1 parameter.

perhaps the appender is going wrong when dealing with this data, try
debugging the appender. The logger code is right (and is not subject to
change anyway).

logger != appender  :-)

Simon


Mime
View raw message