Share Link
Copied to clipboard
Embed on Your Page
Copied to clipboard
We Stand with Ukraine
NLogJsonConfigurationExample by FRNathan13
{
  "ExceptionLoggingOldStyle": false,
  "Variables": {},
  "ConfiguredNamedTargets": [
    {
      "Error": false,
      "Encoding": {
        "IsSingleByte": true,
        "BodyName": "iso-8859-1",
        "EncodingName": "Western European (Windows)",
        "HeaderName": "Windows-1252",
        "WebName": "Windows-1252",
        "WindowsCodePage": 1252,
        "IsBrowserDisplay": true,
        "IsBrowserSave": true,
        "IsMailNewsDisplay": true,
        "IsMailNewsSave": true,
        "EncoderFallback": {
          "MaxCharCount": 1
        },
        "DecoderFallback": {
          "MaxCharCount": 1
        },
        "IsReadOnly": true,
        "CodePage": 1252
      },
      "DetectConsoleAvailable": false,
      "Layout": {
        "OriginalText": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
        "Text": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
        "IsFixedText": false,
        "FixedText": null,
        "Renderers": [
          {
            "UniversalTime": false
          },
          {
            "Text": " "
          },
          {
            "Uppercase": true,
            "Culture": "(Default)",
            "Inner": {
              "OriginalText": "${level}",
              "Text": "${level}",
              "IsFixedText": false,
              "FixedText": null,
              "Renderers": [
                {
                  "Format": 0
                }
              ],
              "StackTraceUsage": 0
            }
          },
          {
            "Text": " "
          },
          {
            "ShortName": true
          },
          {
            "Text": " "
          },
          {
            "WithException": false,
            "ExceptionSeparator": "\r\n",
            "Raw": false
          },
          {
            "Text": " "
          },
          {
            "Format": "ToString",
            "InnerFormat": "",
            "Separator": " ",
            "ExceptionDataSeparator": ";",
            "MaxInnerExceptionLevel": 0,
            "InnerExceptionSeparator": "\r\n",
            "Formats": [
              3
            ],
            "InnerFormats": null
          }
        ],
        "StackTraceUsage": 0
      },
      "Footer": null,
      "Header": null,
      "Name": "console",
      "OptimizeBufferReuse": true
    }
  ],
  "FileNamesToWatch": [],
  "LoggingRules": [
    {
      "Targets": [
        {
          "Error": false,
          "Encoding": {
            "IsSingleByte": true,
            "BodyName": "iso-8859-1",
            "EncodingName": "Western European (Windows)",
            "HeaderName": "Windows-1252",
            "WebName": "Windows-1252",
            "WindowsCodePage": 1252,
            "IsBrowserDisplay": true,
            "IsBrowserSave": true,
            "IsMailNewsDisplay": true,
            "IsMailNewsSave": true,
            "EncoderFallback": {
              "MaxCharCount": 1
            },
            "DecoderFallback": {
              "MaxCharCount": 1
            },
            "IsReadOnly": true,
            "CodePage": 1252
          },
          "DetectConsoleAvailable": false,
          "Layout": {
            "OriginalText": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
            "Text": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
            "IsFixedText": false,
            "FixedText": null,
            "Renderers": [
              {
                "UniversalTime": false
              },
              {
                "Text": " "
              },
              {
                "Uppercase": true,
                "Culture": "(Default)",
                "Inner": {
                  "OriginalText": "${level}",
                  "Text": "${level}",
                  "IsFixedText": false,
                  "FixedText": null,
                  "Renderers": [
                    {
                      "Format": 0
                    }
                  ],
                  "StackTraceUsage": 0
                }
              },
              {
                "Text": " "
              },
              {
                "ShortName": true
              },
              {
                "Text": " "
              },
              {
                "WithException": false,
                "ExceptionSeparator": "\r\n",
                "Raw": false
              },
              {
                "Text": " "
              },
              {
                "Format": "ToString",
                "InnerFormat": "",
                "Separator": " ",
                "ExceptionDataSeparator": ";",
                "MaxInnerExceptionLevel": 0,
                "InnerExceptionSeparator": "\r\n",
                "Formats": [
                  3
                ],
                "InnerFormats": null
              }
            ],
            "StackTraceUsage": 0
          },
          "Footer": null,
          "Header": null,
          "Name": "console",
          "OptimizeBufferReuse": true
        }
      ],
      "ChildRules": [],
      "Filters": [],
      "Final": false,
      "LoggerNamePattern": "*",
      "Levels": [
        {
          "Name": "Debug",
          "Ordinal": 1
        },
        {
          "Name": "Info",
          "Ordinal": 2
        },
        {
          "Name": "Warn",
          "Ordinal": 3
        },
        {
          "Name": "Error",
          "Ordinal": 4
        },
        {
          "Name": "Fatal",
          "Ordinal": 5
        }
      ]
    }
  ],
  "DefaultCultureInfo": null,
  "AllTargets": [
    {
      "Error": false,
      "Encoding": {
        "IsSingleByte": true,
        "BodyName": "iso-8859-1",
        "EncodingName": "Western European (Windows)",
        "HeaderName": "Windows-1252",
        "WebName": "Windows-1252",
        "WindowsCodePage": 1252,
        "IsBrowserDisplay": true,
        "IsBrowserSave": true,
        "IsMailNewsDisplay": true,
        "IsMailNewsSave": true,
        "EncoderFallback": {
          "MaxCharCount": 1
        },
        "DecoderFallback": {
          "MaxCharCount": 1
        },
        "IsReadOnly": true,
        "CodePage": 1252
      },
      "DetectConsoleAvailable": false,
      "Layout": {
        "OriginalText": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
        "Text": "${longdate} ${uppercase:${level}} ${logger:shortName=true} ${message} ${exception:format=ToString}",
        "IsFixedText": false,
        "FixedText": null,
        "Renderers": [
          {
            "UniversalTime": false
          },
          {
            "Text": " "
          },
          {
            "Uppercase": true,
            "Culture": "(Default)",
            "Inner": {
              "OriginalText": "${level}",
              "Text": "${level}",
              "IsFixedText": false,
              "FixedText": null,
              "Renderers": [
                {
                  "Format": 0
                }
              ],
              "StackTraceUsage": 0
            }
          },
          {
            "Text": " "
          },
          {
            "ShortName": true
          },
          {
            "Text": " "
          },
          {
            "WithException": false,
            "ExceptionSeparator": "\r\n",
            "Raw": false
          },
          {
            "Text": " "
          },
          {
            "Format": "ToString",
            "InnerFormat": "",
            "Separator": " ",
            "ExceptionDataSeparator": ";",
            "MaxInnerExceptionLevel": 0,
            "InnerExceptionSeparator": "\r\n",
            "Formats": [
              3
            ],
            "InnerFormats": null
          }
        ],
        "StackTraceUsage": 0
      },
      "Footer": null,
      "Header": null,
      "Name": "console",
      "OptimizeBufferReuse": true
    }
  ]
}
Cached Result
Last Run: 6:14:30 am
Compile: 0.219s
Execute: 0.313s
Memory: 24.16Mb
CPU: 0.391s