![]() | 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.
|
![]() ![]() | FromMethod |
Create a SimpleLayout from a lambda method.
|
![]() ![]() | FromString(String) |
Implicitly converts the specified string to a SimpleLayout.
|
![]() ![]() | FromString(String, ConfigurationItemFactory) |
Implicitly converts the specified string to a SimpleLayout.
|
![]() ![]() | FromString(String, Boolean) |
Implicitly converts the specified string to 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.
Only if the layout doesn't have [ThreadAgnostic] and doesn't contain 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) |
Converts a given text to a Layout.
|