BufferingForwardingAppender Class | Apache log4net™ SDK Documentation

Buffers events and then forwards them to attached appenders.
Inheritance Hierarchy

System
Object
log4net.Appender
AppenderSkeleton
log4net.Appender
BufferingAppenderSkeleton
log4net.Appender
BufferingForwardingAppender

Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.8.0-.NET 4.0
Syntax

C#
VB
C++
F#
Copy

    public class BufferingForwardingAppender : BufferingAppenderSkeleton,
    	IAppenderAttachable

    Public Class BufferingForwardingAppender
    	Inherits BufferingAppenderSkeleton
    	Implements IAppenderAttachable

    public ref class BufferingForwardingAppender : public BufferingAppenderSkeleton,
    	IAppenderAttachable

    type BufferingForwardingAppender =
        class
            inherit BufferingAppenderSkeleton
            interface IAppenderAttachable
        end

The BufferingForwardingAppender type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| BufferingForwardingAppender | Initializes a new instance of the BufferingForwardingAppender class.

Top
Properties

| Name | Description
--- | --- | ---
| Appenders | Gets the appenders contained in this appender as an ICollection.
| BufferSize | Gets or sets the size of the cyclic buffer used to hold the logging events. (Inherited from BufferingAppenderSkeleton.)
| ErrorHandler | Gets or sets the IErrorHandler for this appender. (Inherited from AppenderSkeleton.)
| Evaluator | Gets or sets the ITriggeringEventEvaluator that causes the buffer to be sent immediately. (Inherited from BufferingAppenderSkeleton.)
| FilterHead | The filter chain. (Inherited from AppenderSkeleton.)
| Fix | Gets or sets a the fields that will be fixed in the event (Inherited from BufferingAppenderSkeleton.)
| Layout | Gets or sets the ILayout for this appender. (Inherited from AppenderSkeleton.)
| Lossy | Gets or sets a value that indicates whether the appender is lossy. (Inherited from BufferingAppenderSkeleton.)
| LossyEvaluator | Gets or sets the value of the ITriggeringEventEvaluator to use. (Inherited from BufferingAppenderSkeleton.)
| Name | Gets or sets the name of this appender. (Inherited from AppenderSkeleton.)
| OnlyFixPartialEventData | Obsolete. Gets or sets a value indicating if only part of the logging event data should be fixed. (Inherited from BufferingAppenderSkeleton.)
| RequiresLayout | Tests if this appender requires a Layout to be set. (Inherited from AppenderSkeleton.)
| Threshold | Gets or sets the threshold Level of this appender. (Inherited from AppenderSkeleton.)

Top
Methods

| Name | Description
--- | --- | ---
| ActivateOptions | Initialize the appender based on the options set (Inherited from BufferingAppenderSkeleton.)
| AddAppender | Adds an IAppender to the list of appenders of this instance.
| AddFilter | Adds a filter to the end of the filter chain. (Inherited from AppenderSkeleton.)
| Append( LoggingEvent ) | Append a bulk array of logging events. (Inherited from AppenderSkeleton.)
| Append(LoggingEvent) | This method is called by the DoAppend(LoggingEvent) method. (Inherited from BufferingAppenderSkeleton.)
| ClearFilters | Clears the filter list for this appender. (Inherited from AppenderSkeleton.)
| Close | Closes the appender and release resources. (Inherited from AppenderSkeleton.)
| DoAppend(LoggingEvent) | Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent)] method. (Inherited from AppenderSkeleton.)
| DoAppend( LoggingEvent ) | Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent[])] method. (Inherited from AppenderSkeleton.)
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| FilterEvent | Test if the logging event should we output by this appender (Inherited from AppenderSkeleton.)
| Finalize | Finalizes this appender by calling the implementation's Close method. (Inherited from AppenderSkeleton.)
| Flush | Flush the currently buffered events (Inherited from BufferingAppenderSkeleton.)
| Flush(Boolean) | Flush the currently buffered events (Inherited from BufferingAppenderSkeleton.)
| Flush(Int32) | Flushes any buffered log data. (Inherited from BufferingAppenderSkeleton.)
| GetAppender | Looks for the appender with the specified name.
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| IsAsSevereAsThreshold | Checks if the message level is below this appender's threshold. (Inherited from AppenderSkeleton.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| OnClose | Closes the appender and releases resources. (Overrides BufferingAppenderSkeleton OnClose .)
| PreAppendCheck | Called before [M:Append(LoggingEvent)] as a precondition. (Inherited from AppenderSkeleton.)
| RemoveAllAppenders | Removes all previously added appenders from this appender.
| RemoveAppender(String) | Removes the appender with the specified name from the list of appenders.
| RemoveAppender(IAppender) | Removes the specified appender from the list of appenders.
| RenderLoggingEvent(LoggingEvent) | Renders the LoggingEvent to a string. (Inherited from AppenderSkeleton.)
| RenderLoggingEvent(TextWriter, LoggingEvent) | Renders the LoggingEvent to a string. (Inherited from AppenderSkeleton.)
| SendBuffer | Send the events. (Overrides BufferingAppenderSkeleton SendBuffer( LoggingEvent ).)
| SendFromBuffer | Sends the contents of the buffer. (Inherited from BufferingAppenderSkeleton.)
| ToString | Returns a String that represents the current Object. (Inherited from Object.)

Top
Remarks

The events are buffered in this appender until conditions are met to allow the appender to deliver the events to the attached appenders. See BufferingAppenderSkeleton for the conditions that cause the buffer to be sent.

The forwarding appender can be used to specify different thresholds and filters for the same appender at different locations within the hierarchy.

See Also

#### Reference

log4net.Appender Namespace