C# 클래스 NLog.Layouts.SimpleLayout

상속: Layout, ISupportsLazyParameters
파일 보기 프로젝트 열기: NLog/NLog 1 사용 예제들

공개 메소드들

메소드 설명
Escape ( string text ) : string

Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.

Escaping is done by replacing all occurrences of '${' with '${literal:text=${}'

Evaluate ( string text ) : string

Evaluates the specified text by expanding all layout renderers in new LogEventInfo context.

Evaluate ( string text, LogEventInfo logEvent ) : string

Evaluates the specified text by expanding all layout renderers.

SimpleLayout ( ) : System.Collections.Generic

Initializes a new instance of the SimpleLayout class.

SimpleLayout ( string txt ) : System.Collections.Generic

Initializes a new instance of the SimpleLayout class.

SimpleLayout ( string txt, ConfigurationItemFactory configurationItemFactory ) : System.Collections.Generic

Initializes a new instance of the SimpleLayout class.

ToString ( ) : string

Returns a that represents the current object.

보호된 메소드들

메소드 설명
GetFormattedMessage ( LogEventInfo logEvent ) : string

Renders the layout for the specified logging event by invoking layout renderers that make up the event.

InitializeLayout ( ) : void

Initializes the layout.

비공개 메소드들

메소드 설명
SetRenderers ( LayoutRenderer renderers, string text ) : void
SimpleLayout ( LayoutRenderer renderers, string text, ConfigurationItemFactory configurationItemFactory ) : System.Collections.Generic

메소드 상세

Escape() 공개 정적인 메소드

Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.
Escaping is done by replacing all occurrences of '${' with '${literal:text=${}'
public static Escape ( string text ) : string
text string The text to be escaped.
리턴 string

Evaluate() 공개 정적인 메소드

Evaluates the specified text by expanding all layout renderers in new LogEventInfo context.
public static Evaluate ( string text ) : string
text string The text to be evaluated.
리턴 string

Evaluate() 공개 정적인 메소드

Evaluates the specified text by expanding all layout renderers.
public static Evaluate ( string text, LogEventInfo logEvent ) : string
text string The text to be evaluated.
logEvent LogEventInfo Log event to be used for evaluation.
리턴 string

GetFormattedMessage() 보호된 메소드

Renders the layout for the specified logging event by invoking layout renderers that make up the event.
protected GetFormattedMessage ( LogEventInfo logEvent ) : string
logEvent LogEventInfo The logging event.
리턴 string

InitializeLayout() 보호된 메소드

Initializes the layout.
protected InitializeLayout ( ) : void
리턴 void

SimpleLayout() 공개 메소드

Initializes a new instance of the SimpleLayout class.
public SimpleLayout ( ) : System.Collections.Generic
리턴 System.Collections.Generic

SimpleLayout() 공개 메소드

Initializes a new instance of the SimpleLayout class.
public SimpleLayout ( string txt ) : System.Collections.Generic
txt string The layout string to parse.
리턴 System.Collections.Generic

SimpleLayout() 공개 메소드

Initializes a new instance of the SimpleLayout class.
public SimpleLayout ( string txt, ConfigurationItemFactory configurationItemFactory ) : System.Collections.Generic
txt string The layout string to parse.
configurationItemFactory NLog.Config.ConfigurationItemFactory The NLog factories to use when creating references to layout renderers.
리턴 System.Collections.Generic

ToString() 공개 메소드

Returns a that represents the current object.
public ToString ( ) : string
리턴 string