Click or drag to resize

Layout Methods

The Layout type exposes the following members.

Methods
  NameDescription
Protected methodCloseLayout
Closes the layout.
Public methodStatic memberFromMethod
Create a SimpleLayout from a lambda method.
Public methodStatic memberFromString(String)
Implicitly converts the specified string to a SimpleLayout.
Public methodStatic memberFromString(String, ConfigurationItemFactory)
Implicitly converts the specified string to a SimpleLayout.
Public methodStatic memberFromString(String, Boolean)
Implicitly converts the specified string to a SimpleLayout.
Protected methodGetFormattedMessage
Renders formatted output using the log event as context.
Protected methodInitializeLayout
Initializes the layout.
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].
Public methodRender(LogEventInfo)
Renders formatted output using the log event as context.
Public methodRender(LogEventInfo, StringBuilder)
Optimized version of Render(LogEventInfo) that works best when override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
Protected methodRenderFormattedMessage
Renders formatted output using the log event as context.
Protected methodResolveServiceT
Resolve from DI ServiceRepository
Top
See Also