NLog.Layouts.SimpleLayout.Evaluate C# (CSharp) 메소드

Evaluate() 공개 정적인 메소드

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.
리턴 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