NLog.Layouts.SimpleLayout.Escape C# (CSharp) Method

Escape() public static 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.
Escaping is done by replacing all occurrences of '${' with '${literal:text=${}'
public static Escape ( string text ) : string
text string The text to be escaped.
return string
        public static string Escape(string text)
        {
            return text.Replace("${", "${literal:text=${}");
        }