Skip to content

NlogViewer is a simple WPF-control to show NLog-logs.

License

Notifications You must be signed in to change notification settings

xknife-erian/nknife.nlog.wpf

 
 

Repository files navigation

NuGet

NKnife.NLog.WPF

NKnife.NLog.Wpf is a simple WPF-control to show NLog-logs.

How to use?

Add a namespace to your Window, like this:

    xmlns:nlog ="clr-namespace:NKnife.NLog.WPF;assembly=NKnife.NLog.WPF"

then add the control.

    <nlog:NlogViewer x:Name="logCtrl" /> 

To setup NlogViewer as a target, add the following to your Nlog.config.

  <extensions>
    <add assembly="NKnife.NLog.WPF" />
  </extensions>
  <targets>
    <target xsi:type="NlogViewer" name="ctrl" />
  </targets>
  <rules>
    <logger name="*" minlevel="Trace" writeTo="ctrl" />
  </rules>

Nuget

A NuGet-package is available here. It will try to install the control and a sample Nlog.config.

About

NlogViewer is a simple WPF-control to show NLog-logs.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 100.0%