C# Class log4net.HttpRequestAppender.Tests.Unit.Appender.CountingAppender

Implements an Appender for test purposes that counts the number of output calls to Append.
This appender is used in the unit tests.
Inheritance: log4net.Appender.AppenderSkeleton
Exibir arquivo Open project: e-travel/log4net.HttpRequestAppender Class Usage Examples

Public Methods

Method Description
CountingAppender ( ) : log4net.Appender

Initializes a new instance of the CountingAppender class.

ResetCounter ( ) : void

Reset the counter to zero

Protected Methods

Method Description
Append ( log4net.Core.LoggingEvent logEvent ) : void

Registers how many times the method has been called.

Method Details

Append() protected method

Registers how many times the method has been called.
protected Append ( log4net.Core.LoggingEvent logEvent ) : void
logEvent log4net.Core.LoggingEvent The logging event.
return void

CountingAppender() public method

Initializes a new instance of the CountingAppender class.
public CountingAppender ( ) : log4net.Appender
return log4net.Appender

ResetCounter() public method

Reset the counter to zero
public ResetCounter ( ) : void
return void