Useful NLog Targets

NLog has many targets to which it can save log entries. Here are some that I consider quite useful.

File

I’ve added some parameters to archive log on everyday basis.

EventLog

NLog will create custom application log MyAppLog.

Visual Studio Debug window

Also NLog allows to save log in a database table, but it needs more efforts and lines of code to setup it. You can read more in the article Database target in NLog project documentation.

CategoriesC#

Leave a Reply

Your email address will not be published. Required fields are marked *