Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Literal layout renderer

NLog documentation is a Wiki, which allows registered users to edit its content.
If you want to contribute, please create a user account and contact Jarek to get edit access.

A string literal. 

Supported in

Configuration Syntax

${literal:text=String}
Read more about using the Configuration File.

Parameters

  • Rendering Options
  • text - Literal text.

Remarks

This is used to escape '${' sequence as ;${literal:text=${}'

Examples

Basic

Configuration:

${literal:text=Some Text with ${ in it}

Code:

logger.Debug("Test Message")

Result:

Some Text with ${ in it