NLogProviderOptions Properties |
The NLogProviderOptions type exposes the following members.
Name | Description | |
---|---|---|
AutoShutdown |
Automatically Shutdown NLog on AppDomain.Unload or AppDomain.ProcessExit
| |
CaptureEventId |
Control capture of EventId as "EventId"-property.
| |
CaptureMessageParameters |
Enable capture of Parameters from the ILogger-State-object. Only relevant when CaptureMessageTemplates = true
| |
CaptureMessageProperties |
Enable capture of properties from the ILogger-State-object, both in Log``1(LogLevel, EventId, UMP, Exception, FuncUMP, Exception, String) and BeginScope``1(UMP) | |
CaptureMessageTemplates |
Enable structured logging by capturing message template parameters with support for "@" and "$". Enables use of ${message:raw=true}
| |
EventIdSeparator |
Separator between for EventId.Id and EventId.Name. Default to _
| |
IgnoreEmptyEventId | ||
IncludeActivityIdsWithBeginScope | Obsolete.
Automatically include Activity.SpanId, Activity.TraceId and Activity.ParentId.
| |
IncludeActivtyIdsWithBeginScope | Obsolete.
See IncludeActivityIdsWithBeginScope for documentation
| |
IncludeScopes |
Enable capture of scope information and inject into ScopeContext | |
LoggingConfigurationSectionName |
Checks the Host Configuration for the specified section-name, and tries to load NLog-LoggingConfiguration after creation of NLogLoggerProvider
| |
ParseMessageTemplates |
Use the NLog engine for parsing the message template (again) and format using the NLog formatter
| |
RegisterServiceProvider |
Enable NLog Targets and Layouts to perform dependency lookup using the Microsoft Dependency Injection IServiceProvider
| |
RemoveLoggerFactoryFilter |
Resets the default Microsoft LoggerFactory Filter for the NLogLoggerProvider, and instead only uses NLog LoggingRules.
| |
ReplaceLoggerFactory |
Replace Microsoft LoggerFactory with a pure NLogLoggerFactory, and disables Microsoft Filter Logic and removes other LoggingProviders.
| |
ShutdownOnDispose |
Shutdown NLog on dispose of the NLogLoggerProvider |