NLog Logging Library

Layout Members

Layout overview

Public Static (Shared) Methods

Escape Escapes the passed text so that it can be used literally in all places where layout is normally expected without being treated as layout.
EvaluateOverloaded. Evaluates the specified text by expadinging all layout renderers.

Public Instance Constructors

Layout Overloaded. Initializes a new instance of the Layout class.

Public Instance Properties

Renderers A collection of LayoutRenderer objects that make up this layout.
Text The layout text

Public Instance Methods

GetFormattedMessage Renders the layout for the specified logging event by invoking layout renderers that make up the event.
IsVolatile Returns the value indicating whether this layout includes any volatile layout renderers.
NeedsStackTrace Returns the value indicating whether a stack trace and/or the source file information should be gathered during layout processing.
Precalculate Precalculates the layout for the specified log event and stores the result in per-log event cache.

See Also

Layout Class | NLog Namespace