The following types can be configured:
- Targets - the destinations of a logevent, e.g. file, database, console
- Layout - the layout e.g. json, csv, plain-text (default)
- Layout renderers - the template markers, e.g. ${message}, ${exception}, ${date}
More information can be found at the
NLog tutorial
and
Advanced NLog Configuration file.
Or what about writing a custom target, layout or layout renderer yourself? It's pretty easy! See
extending NLog.
Missing or incorrect info? Feel free to edit the config and send a PR for the following config files:
targets.json,
layouts.json or
layout-renderers.json