 | SimpleLayoutEvaluate Method (String, LogEventInfo) |
Evaluates the specified text by expanding all layout renderers.
Namespace:
NLog.Layouts
Assembly:
NLog (in NLog.dll) Version: 6.0.0+cfb73701cda54e2410b006f649f072e90daef707
Syntaxpublic static string Evaluate(
string text,
LogEventInfo logEvent
)
Public Shared Function Evaluate (
text As String,
logEvent As LogEventInfo
) As String
Dim text As String
Dim logEvent As LogEventInfo
Dim returnValue As String
returnValue = SimpleLayout.Evaluate(text,
logEvent)
static member Evaluate :
text : string *
logEvent : LogEventInfo -> string
Parameters
- text
- Type: SystemString
The text to be evaluated. - logEvent
- Type: NLogLogEventInfo
Log event to be used for evaluation.
Return Value
Type:
StringThe input text with all occurrences of ${} replaced with
values provided by the appropriate layout renderers.
See Also