Skip to content
Rolf Kristensen edited this page Jul 2, 2025 · 88 revisions

Use

Targets are used to display, store, or pass log messages to another destination. There are two kinds of target:

  1. Targets that writes the LogEvents
  2. 'Wrapper' Targets that apply additional logic when writing to wrapped Target. Logic can be filtering / batching / retry-on-error / etc.

Available Targets

List of NLog targets can found here: https://nlog-project.org/config/?tab=targets

Nuget Packages from NLog

Writing your own target

NLog can be extended with custom new targets. For more information, see: Extending NLog

Clone this wiki locally