NLog.Layouts.SimpleLayout.Evaluate C# (CSharp) Méthode

Evaluate() public static méthode

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.
Résultat 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