Extend this abstract class to create your own log layout format.
Inheritance Hierarchy
log4net.LayoutLayoutSkeleton
log4net.LayoutExceptionLayout
log4net.LayoutPatternLayout
log4net.LayoutSimpleLayout
log4net.LayoutXmlLayoutBase
Namespace: log4net.Layout
Assembly: log4net (in log4net.dll) Version: 2.0.6.0-.NET 4.0
Syntax
The LayoutSkeleton type exposes the following members.
Constructors
Name | Description | |
---|---|---|
LayoutSkeleton |
Empty default constructor
|
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
|
Methods
Name | Description | |
---|---|---|
ActivateOptions |
Activate component options
| |
Equals | (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 | (Inherited from Object.) |
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