Click or drag to resize
Layout Class
Abstract interface that layouts must implement.
Inheritance Hierarchy

Namespace: NLog.Layouts
Assembly: NLog (in NLog.dll) Version: 4.3.0
Syntax
public abstract class Layout

The Layout type exposes the following members.

Constructors
  NameDescription
Protected methodLayout
Initializes a new instance of the Layout class
Top
Properties
  NameDescription
Protected propertyLoggingConfiguration
Gets the logging configuration this target is part of.
Top
Methods
  NameDescription
Protected methodCloseLayout
Closes the layout.
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.
Protected methodGetFormattedMessage
Renders the layout for the specified logging event by invoking layout renderers.
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 doens't contain layouts with [ThreadAgnostic].
Public methodRender
Renders the event info in layout.
Top
Operators
See Also