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

Evaluate() public static method

Evaluates the specified text by expanding all layout renderers.
public static Evaluate ( string text, LogEventInfo logEvent ) : string
text string The text to be evaluated.
logEvent LogEventInfo Log event to be used for evaluation.
return string
        public static string Evaluate(string text, LogEventInfo logEvent)
        {
            var layout = new SimpleLayout(text);
            return layout.Render(logEvent);
        }

Same methods

SimpleLayout::Evaluate ( string text ) : string