This appender forwards logging events to attached appenders.
Inheritance Hierarchy
log4net.AppenderAppenderSkeleton
log4net.AppenderForwardingAppender
Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The ForwardingAppender type exposes the following members.
Constructors
Name | Description | |
---|---|---|
ForwardingAppender |
Initializes a new instance of the ForwardingAppender class.
|
Properties
Name | Description | |
---|---|---|
Appenders |
Gets the appenders contained in this appender as an
ICollection.
| |
ErrorHandler |
Gets or sets the IErrorHandler for this appender.
(Inherited from AppenderSkeleton.) | |
FilterHead |
The filter chain.
(Inherited from AppenderSkeleton.) | |
Layout |
Gets or sets the ILayout for this appender.
(Inherited from AppenderSkeleton.) | |
Name |
Gets or sets the name of this appender.
(Inherited from AppenderSkeleton.) | |
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.) |
Methods
Name | Description | |
---|---|---|
ActivateOptions |
Initialize the appender based on the options set
(Inherited from AppenderSkeleton.) | |
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) |
Forward the logging event to the attached appenders
(Overrides AppenderSkeletonAppend(LoggingEvent).) | |
Append(LoggingEvent) |
Forward the logging events to the attached appenders
(Overrides AppenderSkeletonAppend(LoggingEvent).) | |
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 | (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 |
Flushes any buffered log data.
(Inherited from AppenderSkeleton.) | |
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 AppenderSkeletonOnClose.) | |
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.) | |
ToString | (Inherited from Object.) |
Remarks
The forwarding appender can be used to specify different thresholds and filters for the same appender at different locations within the hierarchy.
See Also