Skip to content

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