Метод | Описание | |
---|---|---|
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, |
Initializes a new instance of the SimpleLayout class.
|
|
ToString ( ) : string |
Returns a
|
Метод | Описание | |
---|---|---|
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 ( |
||
SimpleLayout ( |
public static Escape ( string text ) : string | ||
text | string | The text to be escaped. |
Результат | string |
public static Evaluate ( string text ) : string | ||
text | string | The text to be evaluated. |
Результат | string |
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 |
protected GetFormattedMessage ( LogEventInfo logEvent ) : string | ||
logEvent | LogEventInfo | The logging event. |
Результат | string |
public SimpleLayout ( ) : System.Collections.Generic | ||
Результат | System.Collections.Generic |
public SimpleLayout ( string txt ) : System.Collections.Generic | ||
txt | string | The layout string to parse. |
Результат | System.Collections.Generic |
public SimpleLayout ( string txt, |
||
txt | string | The layout string to parse. |
configurationItemFactory | The NLog factories to use when creating references to layout renderers. | |
Результат | System.Collections.Generic |