![]() | SimpleLayout Class |
Namespace: NLog.Layouts
The SimpleLayout type exposes the following members.
Name | Description | |
---|---|---|
![]() | SimpleLayout() |
Initializes a new instance of the SimpleLayout class.
|
![]() | SimpleLayout(String) |
Initializes a new instance of the SimpleLayout class.
|
![]() | SimpleLayout(String, ConfigurationItemFactory) |
Initializes a new instance of the SimpleLayout class.
|
Name | Description | |
---|---|---|
![]() | FixedText |
Get the fixed text. Only set when IsFixedText is true |
![]() | IsFixedText |
Is the message fixed? (no Layout renderers used)
|
![]() | LayoutRenderers |
Gets a collection of LayoutRenderer objects that make up this layout.
|
![]() | LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Layout.) |
![]() | OriginalText |
Original text before compile to Layout renderes
|
![]() | Renderers |
Gets a collection of LayoutRenderer objects that make up this layout.
|
![]() | StackTraceUsage |
Gets the level of stack trace information required for rendering.
|
![]() | Text |
Gets or sets the layout text.
|
Name | Description | |
---|---|---|
![]() | CloseLayout |
Closes the layout.
(Inherited from Layout.) |
![]() ![]() | 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.
|
![]() ![]() | Evaluate(String) |
Evaluates the specified text by expanding all layout renderers
in new LogEventInfo context.
|
![]() ![]() | Evaluate(String, LogEventInfo) |
Evaluates the specified text by expanding all layout renderers.
|
![]() | GetFormattedMessage |
Renders formatted output using the log event as context.
(Overrides Layout.GetFormattedMessage(LogEventInfo).) |
![]() | InitializeLayout |
Initializes the layout.
(Overrides Layout.InitializeLayout().) |
![]() | 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].
(Overrides Layout.Precalculate(LogEventInfo).) |
![]() | Render(LogEventInfo) |
Renders formatted output using the log event as context.
(Inherited from Layout.) |
![]() | Render(LogEventInfo, StringBuilder) |
Optimized version of Render(LogEventInfo) that works best when
override of RenderFormattedMessage(LogEventInfo, StringBuilder) is available.
(Inherited from Layout.) |
![]() | RenderFormattedMessage |
Renders formatted output using the log event as context.
(Overrides Layout.RenderFormattedMessage(LogEventInfo, StringBuilder).) |
![]() | ResolveService<T> |
Resolve from DI ServiceRepository (Inherited from Layout.) |
![]() | ToString | Returns a string that represents the current object. (Overrides Object.ToString().) |
Name | Description | |
---|---|---|
![]() ![]() | Implicit(String to SimpleLayout) |
Converts a text to a simple layout.
|
This layout is not meant to be used explicitly. Instead you can just use a string containing layout renderers everywhere the layout is required.
See NLog Wiki