Abstract base class implementation of IAppender.
Inheritance Hierarchy
log4net.AppenderAppenderSkeleton
More...
Namespace: log4net.Appender
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
public abstract class AppenderSkeleton : IBulkAppender, IAppender, IOptionHandler, IFlushable
The AppenderSkeleton type exposes the following members.
Constructors
Name | Description | |
---|---|---|
AppenderSkeleton |
Default constructor
|
Properties
Name | Description | |
---|---|---|
ErrorHandler |
Gets or sets the IErrorHandler for this appender.
| |
FilterHead |
The filter chain.
| |
Layout |
Gets or sets the ILayout for this appender.
| |
Name |
Gets or sets the name of this appender.
| |
RequiresLayout |
Tests if this appender requires a Layout to be set.
| |
Threshold |
Gets or sets the threshold Level of this appender.
|
Methods
Name | Description | |
---|---|---|
ActivateOptions |
Initialize the appender based on the options set
| |
AddFilter |
Adds a filter to the end of the filter chain.
| |
Append(LoggingEvent) |
Subclasses of AppenderSkeleton should implement this method
to perform actual logging.
| |
Append(LoggingEvent) |
Append a bulk array of logging events.
| |
ClearFilters |
Clears the filter list for this appender.
| |
Close |
Closes the appender and release resources.
| |
DoAppend(LoggingEvent) |
Performs threshold checks and invokes filters before
delegating actual logging to the subclasses specific
[M:Append(LoggingEvent)] method.
| |
DoAppend(LoggingEvent) |
Performs threshold checks and invokes filters before
delegating actual logging to the subclasses specific
[M:Append(LoggingEvent[])] method.
| |
Equals | (Inherited from Object.) | |
FilterEvent |
Test if the logging event should we output by this appender
| |
Finalize |
Finalizes this appender by calling the implementation's
Close method.
(Overrides ObjectFinalize.) | |
Flush |
Flushes any buffered log data.
| |
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.
| |
MemberwiseClone |
Creates a shallow copy of the current Object.
(Inherited from Object.) | |
OnClose |
Is called when the appender is closed. Derived classes should override
this method if resources need to be released.
| |
PreAppendCheck |
Called before [M:Append(LoggingEvent)] as a precondition.
| |
RenderLoggingEvent(LoggingEvent) |
Renders the LoggingEvent to a string.
| |
RenderLoggingEvent(TextWriter, LoggingEvent) |
Renders the LoggingEvent to a string.
| |
ToString | (Inherited from Object.) |
Remarks
This class provides the code for common functionality, such as support for threshold filtering and support for general filters.
Appenders can also implement the IOptionHandler interface. Therefore they would require that the [M:IOptionHandler.ActivateOptions()] method be called after the appenders properties have been configured.
See Also
Reference
Inheritance Hierarchy
log4net.AppenderAppenderSkeleton
log4net.AppenderAnsiColorTerminalAppender
log4net.AppenderAspNetTraceAppender
log4net.AppenderBufferingAppenderSkeleton
log4net.AppenderColoredConsoleAppender
log4net.AppenderConsoleAppender
log4net.AppenderDebugAppender
log4net.AppenderEventLogAppender
log4net.AppenderForwardingAppender
log4net.AppenderLocalSyslogAppender
log4net.AppenderManagedColoredConsoleAppender
log4net.AppenderMemoryAppender
log4net.AppenderNetSendAppender
log4net.AppenderOutputDebugStringAppender
log4net.AppenderTelnetAppender
log4net.AppenderTextWriterAppender
log4net.AppenderTraceAppender
log4net.AppenderUdpAppender