Click or drag to resize

SimpleLayoutEvaluate Method (String, LogEventInfo)

Evaluates the specified text by expanding all layout renderers.

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.5.0+1873145cbc26e0312d9481234d69ce7dc68aac4e
Syntax
public static string Evaluate(
	string text,
	LogEventInfo logEvent
)

Parameters

text
Type: SystemString
The text to be evaluated.
logEvent
Type: NLogLogEventInfo
Log event to be used for evaluation.

Return Value

Type: String
The input text with all occurrences of ${} replaced with values provided by the appropriate layout renderers.
See Also