Skip to content

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
        }
    }
}