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.3.4+73d83d3161d31288ca5c554cc50d27b6bed5f28b
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