API produces logging information. The logging facility uses
The NLog Logger class acts as the source of the log messages. In
general, use one logger per class and pass in the name of the class as the logger name.
To log a message at a certain level use the write methods provided by the
The following log levels are provided:
These levels are listed in order from most severe to least severe.
Configuring the log output
You must configure NLog to output the log messages produced by your application to a target
or targets. NLog provides a large number of targets for your output, including File and
Console. NLog also enables you to create your own targets.
In addition to specifying targets for the log output, use NLog configuration to define
rules that specify to which target log messages with particular levels or logger names are
You can configure NLog in the following ways: