-
Couldn't load subscription status.
- Fork 150
NLog LoggerProvider Options
Rolf Kristensen edited this page Feb 2, 2019
·
3 revisions
The NLog LoggerProvider for Microsoft Extension Logging (MEL) has several options:
NLog Extension Logging ver. 1.4.0 adds support for binding the option-properties to appsettings.json:
{
"Logging": {
"NLog": {
"IncludeScopes": false,
"ParseMessageTemplates": false,
"CaptureMessageProperties": true
}
}
}Just make sure to call UseNLog(), or if using AddNLog then add IConfiguration as parameter.