ILayout InterfaceApache log4net™ SDK Documentation
Interface implemented by layout objects

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

public interface ILayout

The ILayout type exposes the following members.

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 handle exceptions
Top
Methods

  NameDescription
Public methodFormat
Implement this method to create your own layout format.
Top
Remarks

An ILayout object is used to format a LoggingEvent as text. The [M:Format(TextWriter,LoggingEvent)] method is called by an appender to transform the LoggingEvent into a string.

The layout can also supply Header and Footer text that is appender before any events and after all the events respectively.

See Also

Reference