Skip to content

NLog/NLog.Windows.Forms

Repository files navigation

NLog.Windows.Forms

Version AppVeyor codecov.io

This package provides NLog Targets that redirect logging output to Windows Forms:

See list

Register Extension

Install the NLog.Windows.Forms NuGet package and register the extension-assembly.

NLog will only recognize the extensions when loading from NLog.config-file, by adding the extension to NLog.config-file:

<extensions>
  <add assembly="NLog.Windows.Forms"/>
</extensions>

Alternative register from code using fluent configuration API:

NLog.LogManager.Setup().RegisterWindowsForms();