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

OnHasProperties Layout Renderer

Rolf Kristensen edited this pageOct 25, 2022 ·3 revisions

Only outputs the inner layout whenevent properties from structured logging are included with the logevent.

Platforms Supported:All

Introduced with NLog 4.7

Configuration Syntax

${onHasProperties:inner=Layout}

Parameters

Transformation Options

  • inner - Wrapped layout. Layout
  • else - Layout if the condition is not true (introduced in NLog 5.0.5)

Example:

${onHasProperties:, Properties\: ${all-event-properties}}

-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-2026 Movatter.jp