C# 클래스 FluentLog4Net.Layouts.LayoutDefinitionBuilder

Helper class used to build and configure layout definitions.
파일 보기 프로젝트 열기: awhatley/fluent-log4net 1 사용 예제들

공개 메소드들

메소드 설명
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