Method | Description | |
---|---|---|
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
|
Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
SetRenderers ( |
||
SimpleLayout ( |
public static Escape ( string text ) : string | ||
text | string | The text to be escaped. |
return | string |
public static Evaluate ( string text ) : string | ||
text | string | The text to be evaluated. |
return | 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. |
return | string |
protected GetFormattedMessage ( LogEventInfo logEvent ) : string | ||
logEvent | LogEventInfo | The logging event. |
return | string |
public SimpleLayout ( ) : System.Collections.Generic | ||
return | System.Collections.Generic |
public SimpleLayout ( string txt ) : System.Collections.Generic | ||
txt | string | The layout string to parse. |
return | 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. | |
return | System.Collections.Generic |