LayoutSkeleton ClassApache log4net™ SDK Documentation
Extend this abstract class to create your own log layout format.
Inheritance Hierarchy

SystemObject
  log4net.LayoutLayoutSkeleton
    log4net.LayoutExceptionLayout
    log4net.LayoutPatternLayout
    log4net.LayoutSimpleLayout
    log4net.LayoutXmlLayoutBase

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

public abstract class LayoutSkeleton : ILayout, 
	IOptionHandler

The LayoutSkeleton type exposes the following members.

Constructors

  NameDescription
Protected methodLayoutSkeleton
Empty default constructor
Top
Properties

  NameDescription
Public propertyContentType
The content type output by this layout.
Public propertyFooter
The footer for the layout format.
Public propertyHeader
The header for the layout format.
Public propertyIgnoresException
Flag indicating if this layout handles exceptions
Top
Methods

  NameDescription
Public methodActivateOptions
Activate component options
Public methodEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodFormat(LoggingEvent)
Convenience method for easily formatting the logging event into a string variable.
Public methodFormat(TextWriter, LoggingEvent)
Implement this method to create your own layout format.
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 methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodToString
Returns a String that represents the current Object.
(Inherited from Object.)
Top
Remarks

This is the base implementation of the ILayout interface. Most layout objects should extend this class.

Remarks

Note Note

Subclasses must implement the [M:Format(TextWriter,LoggingEvent)] method.

Subclasses should set the IgnoresException in their default constructor.

See Also

Reference