MicrosoftConsoleJsonLayout Class |
Namespace: NLog.Extensions.Logging
The MicrosoftConsoleJsonLayout type exposes the following members.
Name | Description | |
---|---|---|
MicrosoftConsoleJsonLayout |
Initializes a new instance of the MicrosoftConsoleJsonLayout class.
|
Name | Description | |
---|---|---|
Attributes |
Gets the array of attributes' configurations.
(Inherited from JsonLayout.) | |
EscapeForwardSlash |
Should forward slashes be escaped? If true, / will be converted to \/
(Inherited from JsonLayout.) | |
ExcludeEmptyProperties |
Gets or sets the option to exclude null/empty properties from the log event (as JSON)
(Inherited from JsonLayout.) | |
ExcludeProperties |
List of property names to exclude when IncludeAllProperties is true
(Inherited from JsonLayout.) | |
IncludeEventProperties |
Gets or sets the option to include all properties from the log event (as JSON)
(Inherited from JsonLayout.) | |
IncludeGdc |
Gets or sets a value indicating whether to include contents of the GlobalDiagnosticsContext dictionary.
(Inherited from JsonLayout.) | |
IncludeScopeProperties |
Gets or sets whether to include the contents of the ScopeContext dictionary.
(Inherited from JsonLayout.) | |
IncludeScopes |
Gets or sets whether to include "scopes"-section
| |
IndentJson |
Auto indent and create new lines
(Inherited from JsonLayout.) | |
LoggingConfiguration |
Gets the logging configuration this target is part of.
(Inherited from Layout.) | |
MaxRecursionLimit |
How far should the JSON serializer follow object references before backing off
(Inherited from JsonLayout.) | |
RenderEmptyObject |
Gets or sets the option to render the empty object value {}
(Inherited from JsonLayout.) | |
StateAttributes |
Gets the array of attributes for the "state"-section
| |
SuppressSpaces |
Gets or sets the option to suppress the extra spaces in the output json
(Inherited from JsonLayout.) | |
TimestampFormat |
Gets or sets whether to include "Timestamp"-section
|
Name | Description | |
---|---|---|
CloseLayout |
Closes the layout.
(Inherited from JsonLayout.) | |
GetFormattedMessage |
Renders formatted output using the log event as context.
(Inherited from JsonLayout.) | |
InitializeLayout |
Initializes the layout.
(Inherited from JsonLayout.) | |
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].
(Inherited from Layout.) | |
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.
(Inherited from JsonLayout.) | |
ResolveServiceT |
Resolve from DI ServiceRepository (Inherited from Layout.) | |
ToString | Returns a string that represents the current object. (Inherited from JsonLayout.) |