I am currently attempting to write a custom appender for log4net. My Append method:
protected override void Append(LoggingEvent loggingEvent)
{
... stuff
}
I'd like to capture loggingEvent.ExceptionObject
within the method. I can trigger the Append method with
throw new Exception("Test");
but the ExceptionObject
is always null. Every other function of this program works; I can call RenderLoggingEvent(loggingEvent)
and get the correct string back. I just can't get the exception.
Any ideas?