Click or drag to resize

SimpleLayoutEscape Method

Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.

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

Parameters

text
Type: SystemString
The text to be escaped.

Return Value

Type: String
The escaped text.
Remarks
Escaping is done by replacing all occurrences of '${' with '${literal:text=${}'
See Also