Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/NLogPublic

ExceptionData Layout Renderer

Rolf Kristensen edited this pageApr 24, 2022 ·4 revisions

Lookup item inException.Data-Dictionary from Exception provided together with the LogEvent. See alsoHow to properly log exceptions.

Platforms Supported:All (Introduced with NLog 5.0)

Configuration Syntax

${exceptiondata:item=String:format=String:BaseException=Boolean}

Parameters

  • Item - Item to lookup inException.Data
  • Format - Format for conversion from object to string (@ means serialize object properties into Json-format)
  • BaseException - Render innermost Exception from Exception.GetBaseException(). Boolean. Default:false

-Troubleshooting Guide - See available NLog Targets and Layouts:https://nlog-project.org/config

Configuration

Programmatic Configuration

Advanced

Extending NLog

Clone this wiki locally


[8]ページ先頭

©2009-2025 Movatter.jp