LayoutSkeleton Class | Apache log4net™ SDK Documentation

Extend this abstract class to create your own log layout format.
Inheritance Hierarchy

System
Object
log4net.Layout
LayoutSkeleton
log4net.Layout
ExceptionLayout
log4net.Layout
PatternLayout
log4net.Layout
SimpleLayout
log4net.Layout
XmlLayoutBase

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

C#
VB
C++
F#
Copy

    public abstract class LayoutSkeleton : ILayout,
    	IOptionHandler

    Public MustInherit Class LayoutSkeleton
    	Implements ILayout, IOptionHandler

    public ref class LayoutSkeleton abstract : ILayout,
    	IOptionHandler

    [<AbstractClassAttribute>]
    type LayoutSkeleton =
        class
            interface ILayout
            interface IOptionHandler
        end

The LayoutSkeleton type exposes the following members.

Constructors

| Name | Description
--- | --- | ---
| LayoutSkeleton | Empty default constructor

Top
Properties

| Name | Description
--- | --- | ---
| ContentType | The content type output by this layout.
| Footer | The footer for the layout format.
| Header | The header for the layout format.
| IgnoresException | Flag indicating if this layout handles exceptions

Top
Methods

| Name | Description
--- | --- | ---
| ActivateOptions | Activate component options
| Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
| Finalize | Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
| Format(LoggingEvent) | Convenience method for easily formatting the logging event into a string variable.
| Format(TextWriter, LoggingEvent) | Implement this method to create your own layout format.
| GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.)
| GetType | Gets the Type of the current instance. (Inherited from Object.)
| MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.)
| ToString | 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
Subclasses must implement the [M:Format(TextWriter,LoggingEvent)] method. Subclasses should set the IgnoresException in their default constructor.

See Also

#### Reference

log4net.Layout Namespace