Click or drag to resize

LayoutWithHeaderAndFooter Class

A specialized layout that supports header and footer.
Inheritance Hierarchy
SystemObject
  NLog.LayoutsLayout
    NLog.LayoutsLayoutWithHeaderAndFooter
      NLog.LayoutsCsvLayout
      NLog.Web.LayoutsW3CExtendedLogLayout

Namespace:  NLog.Layouts
Assembly:  NLog (in NLog.dll) Version: 5.3.1+cf6675da40ccfd4c8c526a3b2bdbeed3442910a1
Syntax
public class LayoutWithHeaderAndFooter : Layout

The LayoutWithHeaderAndFooter type exposes the following members.

Constructors
  NameDescription
Public methodLayoutWithHeaderAndFooter
Initializes a new instance of the LayoutWithHeaderAndFooter class
Top
Properties
  NameDescription
Public propertyFooter
Gets or sets the footer layout.
Public propertyHeader
Gets or sets the header layout.
Public propertyLayout
Gets or sets the body layout (can be repeated multiple times).
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
(Inherited from Layout.)
Top
Methods
  NameDescription
Protected methodCloseLayout
Closes the layout.
(Inherited from Layout.)
Protected methodGetFormattedMessage
Renders formatted output using the log event as context.
(Overrides LayoutGetFormattedMessage(LogEventInfo).)
Protected methodInitializeLayout
Initializes the layout.
(Inherited from 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].
(Inherited from Layout.)
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.)
Top
See Also