Ads by Lake Quincy Media

Wiki Navigation

 
Gibraltar - Learn about the best analysis tool for NLog

Null target

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.

Discards log messages. Used mainly for debugging and benchmarking. 

Supported in

Configuration Syntax

<targets>
  <target xsi:type="Null" name="String" formatMessage="Boolean" layout="Layout" />
</targets>
Read more about using the Configuration File.

Parameters

  • General Options
  • name - Name of the target.
  • Layout Options
  • formatMessage - Indicates whether to perform layout calculation.Boolean Default: False
  • layout - Layout used to format log messages.Layout Required. Default: ${longdate}|${level:uppercase=true}|${logger}|${message}