Layout Class |
Namespace: NLog.Layouts
The Layout type exposes the following members.
| Name | Description | |
|---|---|---|
| LoggingConfiguration |
Gets the logging configuration this target is part of.
|
| Name | Description | |
|---|---|---|
| CloseLayout |
Closes the layout.
| |
| FromLiteral |
Create a SimpleLayout containing literal value
| |
| FromMethod |
Create a SimpleLayout from a lambda method.
| |
| FromString(String) |
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
| |
| FromString(String, ConfigurationItemFactory) |
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
| |
| FromString(String, Boolean) |
Parses the specified string as LayoutRenderer-expression into a SimpleLayout.
| |
| GetFormattedMessage |
Renders formatted output using the log event as context.
| |
| InitializeLayout |
Initializes the layout.
| |
| Precalculate |
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].
| |
| Render(LogEventInfo) |
Renders formatted output using the log event as context.
| |
| Render(LogEventInfo, StringBuilder) |
Optimized version of Render(LogEventInfo) that works best when
override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
| |
| RenderFormattedMessage |
Renders formatted output using the log event as context.
| |
| ResolveServiceT |
Resolve from DI ServiceRepository |
| Name | Description | |
|---|---|---|
| (String to Layout) |
Implicitly converts the specified string as LayoutRenderer-expression into a Layout.
|