C# Class FluentLog4Net.Layouts.LayoutDefinitionBuilder

Helper class used to build and configure layout definitions.
ファイルを表示 Open project: awhatley/fluent-log4net Class Usage Examples

Public Methods

Method Description
ExceptionMessage ( ) : ExceptionLayoutDefinition

Renders only the exception message from the logging event.

Pattern ( Action pattern ) : FluentPatternLayoutDefinition

Uses a flexible layout configurable with a fluent API.

Pattern ( string pattern ) : PatternLayoutDefinition

Uses a flexible layout configurable with a pattern string.

SimpleMessage ( ) : SimpleLayoutDefinition

Renders the level of the log statement, followed by " - " and then the message itself.

Xml ( Action xml ) : XmlLayoutDefinition

Formats the log events as XML elements.

XmlInLog4JSchema ( Action xml ) : XmlLog4jLayoutDefinition

Formats the log events as XML elements compatible with the log4j schema.

Method Details

ExceptionMessage() public method

Renders only the exception message from the logging event.
public ExceptionMessage ( ) : ExceptionLayoutDefinition
return ExceptionLayoutDefinition

Pattern() public method

Uses a flexible layout configurable with a fluent API.
public Pattern ( Action pattern ) : FluentPatternLayoutDefinition
pattern Action A method to configure the pattern layout.
return FluentPatternLayoutDefinition

Pattern() public method

Uses a flexible layout configurable with a pattern string.
public Pattern ( string pattern ) : PatternLayoutDefinition
pattern string The pattern string to use.
return PatternLayoutDefinition

SimpleMessage() public method

Renders the level of the log statement, followed by " - " and then the message itself.
public SimpleMessage ( ) : SimpleLayoutDefinition
return SimpleLayoutDefinition

Xml() public method

Formats the log events as XML elements.
public Xml ( Action xml ) : XmlLayoutDefinition
xml Action A method to configure the xml layout.
return XmlLayoutDefinition

XmlInLog4JSchema() public method

Formats the log events as XML elements compatible with the log4j schema.
public XmlInLog4JSchema ( Action xml ) : XmlLog4jLayoutDefinition
xml Action A method to configure the xml layout.
return XmlLog4jLayoutDefinition