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

Appearance settings

Message Layout Renderer

Rolf Kristensen edited this page Oct 1, 2023 · 13 revisions

The formatted log message.

Platforms Supported: All

Configuration Syntax

${message:exceptionSeparator=String:withException=Boolean:raw=Boolean}

Parameters

Layout Options

  • exceptionSeparator - String that separates message from the exception.
  • withException - Indicates whether to log exception along with message. Boolean
  • raw - Render the unformatted input message without using input parameters (Message-Template for structured logging). Boolean

    Introduced with NLog 4.5

Text tranformations

NLog provides several text transformations, that can be useful. Ex:

Clone this wiki locally

Morty Proxy This is a proxified and sanitized view of the page, visit original site.