AppenderSkeleton ClassApache log4net™ SDK Documentation
Abstract base class implementation of IAppender.
Inheritance Hierarchy

SystemObject
  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

  NameDescription
Protected methodAppenderSkeleton
Default constructor
Top
Properties

  NameDescription
Public propertyErrorHandler
Gets or sets the IErrorHandler for this appender.
Public propertyFilterHead
The filter chain.
Public propertyLayout
Gets or sets the ILayout for this appender.
Public propertyName
Gets or sets the name of this appender.
Protected propertyRequiresLayout
Tests if this appender requires a Layout to be set.
Public propertyThreshold
Gets or sets the threshold Level of this appender.
Top
Methods

  NameDescription
Public methodActivateOptions
Initialize the appender based on the options set
Public methodAddFilter
Adds a filter to the end of the filter chain.
Protected methodAppend(LoggingEvent)
Subclasses of AppenderSkeleton should implement this method to perform actual logging.
Protected methodAppend(LoggingEvent)
Append a bulk array of logging events.
Public methodClearFilters
Clears the filter list for this appender.
Public methodClose
Closes the appender and release resources.
Public methodDoAppend(LoggingEvent)
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent)] method.
Public methodDoAppend(LoggingEvent)
Performs threshold checks and invokes filters before delegating actual logging to the subclasses specific [M:Append(LoggingEvent[])] method.
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFilterEvent
Test if the logging event should we output by this appender
Protected methodFinalize
Finalizes this appender by calling the implementation's Close method.
(Overrides ObjectFinalize.)
Public methodFlush
Flushes any buffered log data.
Public methodGetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodIsAsSevereAsThreshold
Checks if the message level is below this appender's threshold.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodOnClose
Is called when the appender is closed. Derived classes should override this method if resources need to be released.
Protected methodPreAppendCheck
Called before [M:Append(LoggingEvent)] as a precondition.
Protected methodRenderLoggingEvent(LoggingEvent)
Renders the LoggingEvent to a string.
Protected methodRenderLoggingEvent(TextWriter, LoggingEvent)
Renders the LoggingEvent to a string.
Public methodToString
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

Inheritance Hierarchy

SystemObject
  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