Click or drag to resize

SimpleLayout Methods

The SimpleLayout type exposes the following members.

Methods
  NameDescription
Public methodStatic memberEvaluate(String)
Evaluates the specified text by expanding all layout renderers in new LogEventInfo context.
Public methodStatic memberEvaluate(String, LogEventInfo)
Evaluates the specified text by expanding all layout renderers.
Public methodPrecalculate
Precalculates the layout for the specified log event and stores the result in per-log event cache. Skips context capture when Layout have [ThreadAgnostic], and only contains layouts with [ThreadAgnostic].
(Overrides LayoutPrecalculate(LogEventInfo).)
Public methodRender(LogEventInfo)
Renders formatted output using the log event as context.
(Inherited from Layout.)
Public methodRender(LogEventInfo, StringBuilder)
Optimized version of Render(LogEventInfo) that works best when override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
(Inherited from Layout.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also