Click or drag to resize

SimpleLayout Methods

The SimpleLayout type exposes the following members.

Methods
  NameDescription
Protected methodCloseLayout
Closes the layout.
(Inherited from Layout.)
Public methodStatic memberEscape
Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.
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.
Protected methodGetFormattedMessage
Renders formatted output using the log event as context.
(Overrides LayoutGetFormattedMessage(LogEventInfo).)
Protected methodInitializeLayout
Initializes the layout.
(Overrides LayoutInitializeLayout.)
Public methodPrecalculate
Precalculates the layout for the specified log event and stores the result in per-log event cache. Only if the layout doesn't have [ThreadAgnostic] and doesn't contain 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.)
Protected methodRenderFormattedMessage
Renders formatted output using the log event as context.
(Overrides LayoutRenderFormattedMessage(LogEventInfo, StringBuilder).)
Protected methodResolveServiceT
Resolve from DI ServiceRepository
(Inherited from Layout.)
Public methodToString
Returns a string that represents the current object.
(Overrides ObjectToString.)
Top
See Also