C# Class FluentLog4Net.Layouts.LayoutDefinitionBuilder

Helper class used to build and configure layout definitions.
Afficher le fichier Open project: awhatley/fluent-log4net Class Usage Examples

Méthodes publiques

Méthode 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 méthode

Renders only the exception message from the logging event.
public ExceptionMessage ( ) : ExceptionLayoutDefinition
Résultat ExceptionLayoutDefinition

Pattern() public méthode

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

Pattern() public méthode

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

SimpleMessage() public méthode

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

Xml() public méthode

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

XmlInLog4JSchema() public méthode

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.
Résultat XmlLog4jLayoutDefinition