logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hunter, Francine" <Francine_Hun...@eLoyalty.com>
Subject RE: Appenders
Date Wed, 12 Dec 2001 14:53:50 GMT
Perfect. Thank you 

-----Original Message-----
From: Ceki Gulcu [mailto:ceki@qos.ch]
Sent: Wednesday, December 12, 2001 1:11 AM
To: Log4J Developers List
Subject: Re: Appenders



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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message