You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4net-dev@logging.apache.org by "Nicko Cadell (JIRA)" <ji...@apache.org> on 2005/04/17 01:45:58 UTC
[jira] Commented: (LOG4NET-24) Programmatic flush of BufferingAppenderSkeleton buffer
[ http://issues.apache.org/jira/browse/LOG4NET-24?page=comments#action_62990 ]
Nicko Cadell commented on LOG4NET-24:
-------------------------------------
Using this method it should be possible to write a simple method to flush all the appenders:
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();
}
}
}
> Programmatic flush of BufferingAppenderSkeleton buffer
> ------------------------------------------------------
>
> Key: LOG4NET-24
> URL: http://issues.apache.org/jira/browse/LOG4NET-24
> Project: Log4net
> Type: New Feature
> Components: Appenders
> Versions: 1.2.9
> Reporter: Nicko Cadell
> Assignee: Nicko Cadell
> Priority: Minor
> Fix For: 1.2.10
>
> Programmatic flush of BufferingAppenderSkeleton buffer
> The BufferingAppenderSkeleton holds a buffer of events which are to be delivered to the appender subclass via the SendBuffer method. This buffer currently cannot be programmatically flushed to the appender.
> It should be trivial to add support for a void Flush() method to the BufferingAppenderSkeleton class.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira