|
Added public virtual void BufferingAppenderSkeleton.Flush() method.
Nicko Cadell made changes - 17/Apr/05 08:45 AM
This issue may be alleviated by the addition of a programmatic API for flushing the buffer held by the BufferingAppenderSkeleton. While this is not a general solution for all appenders and all types of output buffering I am going to leave this issue open.
Nicko Cadell made changes - 17/Apr/05 09:53 AM
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
private static void FlushAllAppenders()
{
foreach(log4net.Appender.IAppender appender in log4net.LogManager.GetRepository().GetAppenders())
{
log4net.Appender.BufferingAppenderSkeleton buffer = appender as log4net.Appender.BufferingAppenderSkeleton;
if (buffer != null)
{
buffer.Flush();
}
}
}