A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/NLog/NLog/wiki/Null-target below:

Null target · NLog/NLog Wiki · GitHub

Discards log messages. Used mainly for debugging and benchmarking.

Platforms Supported: All

<targets>
  <target xsi:type="Null" name="String" formatMessage="Boolean" layout="Layout" />
</targets>

Read more about using the Configuration File.

This example is useful for testing the performance of the NLog engine. Logging rule without any writeTo= option is much faster way to do filtering (Zero allocation).

<targets>
  <target xsi:type="Null" name="BlackHole" formatMessage="false"  />
</targets>
<rules>
   <!-- ignore events written that are written to a logger which starts with "Namespace." -->
   <logger name="Namespace.*" minlevel="Debug" writeTo="BlackHole" final="true" />     
</rules>

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4