Overview

You went to all that effort adding log4net to your project. And using it! Now you're developing your application and wouldn't it be useful if you could actually see those messages? In real-time? Without having to constantly flip to your log file?

Now you can! This very simple log4net appender will route all your log messages to Growl or Growl for Windows.

Wheeee!

Simply [install the log4net.GrowlAppender nuget package] and configure your log4net.config with this appender eg

<?xml version="1.0" encoding="utf-8" ?>
<log4net debug="true">
  <appender name="debugAppender" type="log4net.Appender.DebugAppender">
    <layout type="log4net.Layout.SimpleLayout"></layout>
  </appender>
  <appender name="growlAppender" type="log4net.Appender.GrowlAppender, log4net.GrowlAppender">
    <layout type="log4net.Layout.SimpleLayout"></layout>
  </appender>
  <root>
    <level value="ALL" />
    <appender-ref ref="debugAppender" />
    <appender-ref ref="growlAppender" />
  </root>
</log4net>

== Testing It ==

The solution contains an xunit test project. Make sure you have growl running on your system and run Test2. You should see several messages pop up in your growl system.

See the demo video.

== Building the Nuget Package ==

Thanks to the incredible CreateNewNuGetPackageFromProjectAfterEachBuild project simply building log4net.GrowlAppender will create a nuget package (using the contained nuspec file as a template). Simply build in visual studio and find the nupkg in your output directory.