logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gulcu <c...@qos.ch>
Subject Re: Appenders
Date Wed, 12 Dec 2001 07:11:26 GMT

The throwable (exception) information is contained within the event. See
the getThrowableInformation() and getThrowableStrRep methods in the org.apache.log4j.spi.LoggingEvent
class. HTH, Ceki


At 21:05 11.12.2001 -0800, you wrote:
>I have an TextAppender working.  
>
>I extend AppenderSkeleton and override append( LoggingEvent ... ). This works great. However
I would like to 
>be able to get a hold of the Exception Object in my appender,  when calling something
like:
>
>    catch( Exception e )
>    {
>       m_log.error( "My Error String", e );
>    }
>
>How would I go about doing this...
>
>There is no append( LoggingEvent ..., Exception ... )  method that I can override right?
So what else could I do?
>
>Thanks in advance


--
To unsubscribe, e-mail:   <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-dev-help@jakarta.apache.org>


Mime
View raw message