Define log targets

A log target is the location log messages are written to including file name and log message layout specification. NLog supports over 100 different targets. This documentation is limited to the adaptation of the Alfabet NLog example configuration files to activate the default targets to write log messages to files, console window, Splunk® and Microsoft Windows® Event Log. Consult the NLog documentation to include other targets..

In the example file, parts of the target definitions is based on variables and layout renderers.

To alter the targets, you can change the target itself or the variable value. You can also create new variables or new targets with different names and values. Each variable must have a unique name.