| SimpleLayoutEvaluate Method (String) |
Evaluates the specified text by expanding all layout renderers
in new
LogEventInfo context.
Namespace:
NLog.Layouts
Assembly:
NLog (in NLog.dll) Version: 5.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
Syntax public static string Evaluate(
string text
)
Public Shared Function Evaluate (
text As String
) As String
Dim text As String
Dim returnValue As String
returnValue = SimpleLayout.Evaluate(text)
static member Evaluate :
text : string -> string
Parameters
- text
- Type: SystemString
The text to be evaluated.
Return Value
Type:
StringThe input text with all occurrences of ${} replaced with
values provided by the appropriate layout renderers.
See Also