NLog.Layouts.Layout
Abstract interface that layouts must implement.
Default Layout-value that renders string.Empty
protected Layout()
Create a SimpleLayout containing literal value
public static Layout FromMethod(Func<LogEventInfo, object> layoutMethod, LayoutRenderOptions options = 0)
Create a SimpleLayout from a lambda method.
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
public static Layout FromString(string layoutText, ConfigurationItemFactory configurationItemFactory)
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
Indicates whether the specified layout is null or Empty.
Implicitly converts the specified string as LayoutRenderer-expression into a Layout.
Obsolete and replaced by Setup with NLog v5.2.
Register a custom Layout.
Obsolete and replaced by Setup with NLog v5.2.
Register a custom Layout.
Closes the layout.
Renders formatted output using the log event as context.
Initializes the layout.
Precalculates the layout for the specified log event and stores the result
in per-log event cache.
Skips context capture when Layout have [ThreadAgnostic], and only contains layouts with [ThreadAgnostic].
Renders formatted output using the log event as context.
Optimized version of Render that works best when
override of RenderFormattedMessage is available.
Renders formatted output using the log event as context.
Resolve from DI ServiceRepository