Skip to content

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

Notifications You must be signed in to change notification settings

mpbill/NlogViewerExtended

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NlogViewerWithFilterScroll

This is my fork of erizet/NlogViewer with the following additions:

  • Font and Color scheme for easy diferentiation of LogLevels
  • added LogCount DependancyProperty allowing you to set your own MaxLogCount
  • Filter option for LogLevels and HasException
  • AutoScroll property which if set to true, will scroll new LogItems into view.

NlogViewer

NlogViewer is a simple WPF-control to show NLog-logs. It's heavily inspired by this blog.

##How to use?##

Add a namespace to your Window, like this:

    xmlns:nlog ="clr-namespace:NlogViewer;assembly=NlogViewer"

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="NlogViewer" />
  </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

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C# 98.7%
  • PowerShell 1.3%