Given a class extending FilterSkeleton with a property name MyName and an appender extending ApenderSkeleton
is it possible to get the MyName property of the filter which accepted this message while in the Append method of the appender ?
protected override void Append(LoggingEvent loggingEvent)
{
//sudo
var somename = acceptedfilter.MyName;
}
You can override the
FilterEvent
method to save the filter that accepts the message, and then retrieve it inAppend
: