C# Класс FluentLog4Net.Layouts.LayoutDefinitionBuilder

Helper class used to build and configure layout definitions.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Описание методов

ExceptionMessage() публичный Метод

Renders only the exception message from the logging event.
public ExceptionMessage ( ) : ExceptionLayoutDefinition
Результат ExceptionLayoutDefinition

Pattern() публичный Метод

Uses a flexible layout configurable with a fluent API.
public Pattern ( Action pattern ) : FluentPatternLayoutDefinition
pattern Action A method to configure the pattern layout.
Результат FluentPatternLayoutDefinition

Pattern() публичный Метод

Uses a flexible layout configurable with a pattern string.
public Pattern ( string pattern ) : PatternLayoutDefinition
pattern string The pattern string to use.
Результат PatternLayoutDefinition

SimpleMessage() публичный Метод

Renders the level of the log statement, followed by " - " and then the message itself.
public SimpleMessage ( ) : SimpleLayoutDefinition
Результат SimpleLayoutDefinition

Xml() публичный Метод

Formats the log events as XML elements.
public Xml ( Action xml ) : XmlLayoutDefinition
xml Action A method to configure the xml layout.
Результат XmlLayoutDefinition

XmlInLog4JSchema() публичный Метод

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.
Результат XmlLog4jLayoutDefinition