AppenderSkeleton Class | Apache log4net™ SDK Documentation

Abstract base class implementation of IAppender.
Inheritance Hierarchy

System
Object
log4net.Appender
AppenderSkeleton
More...

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

C#
VB
C++
F#
Copy

    public abstract class AppenderSkeleton : IBulkAppender,
    	IAppender, IOptionHandler, IFlushable

    Public MustInherit Class AppenderSkeleton
    	Implements IBulkAppender, IAppender, IOptionHandler, IFlushable

    public ref class AppenderSkeleton abstract : IBulkAppender,
    	IAppender, IOptionHandler, IFlushable

    [<AbstractClassAttribute>]
    type AppenderSkeleton =
        class
            interface IBulkAppender
            interface IAppender
            interface IOptionHandler
            interface IFlushable
        end

The AppenderSkeleton type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| AppenderSkeleton | Default constructor

Top
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.

Top
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 | 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
| Finalize | Finalizes this appender by calling the implementation's Close method. (Overrides Object Finalize .)
| 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 | Returns a String that represents the current Object. (Inherited from Object.)

Top
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

log4net.Appender Namespace
Inheritance Hierarchy

System
Object
log4net.Appender
AppenderSkeleton
log4net.Appender
AnsiColorTerminalAppender
log4net.Appender
AspNetTraceAppender
log4net.Appender
BufferingAppenderSkeleton
log4net.Appender
ColoredConsoleAppender
log4net.Appender
ConsoleAppender
log4net.Appender
DebugAppender
log4net.Appender
EventLogAppender
log4net.Appender
ForwardingAppender
log4net.Appender
LocalSyslogAppender
log4net.Appender
ManagedColoredConsoleAppender
log4net.Appender
MemoryAppender
log4net.Appender
NetSendAppender
log4net.Appender
OutputDebugStringAppender
log4net.Appender
TelnetAppender
log4net.Appender
TextWriterAppender
log4net.Appender
TraceAppender
log4net.Appender
UdpAppender