A Log4Net Appender to use with Knowvent
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.nuget
Knowvent.Log4Net
Knowvent.Log4NetTester
.gitignore
Knowvent.Log4Net.sln
README.md

README.md

###3 Easy Steps - Knowvent & Log4Net Notification Appender

1) Add the Nuget package to your project

PM> Install-Package Knowvent.Log4Net 

2) Setup your Appender configuration in the app.config/web.config

The nuget package will automatically add the Knowvent Appender to your configuration file upon install. All you need to do is supply a ClientId and ApiKey.

  <log4net>
	<root>
	  <level value="ALL" />
	  <appender-ref ref="KnowventAppender" />
	</root>
	<appender name="KnowventAppender" type="Knowvent.Log4Net.KnowventAppender, Knowvent.Log4Net">
	  <ClientId>00000000-0000-0000-0000-000000000000</ClientId> <!--Required-->
	  <ApiKey>xXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXxXx</ApiKey> <!--Required-->
	  <LoggingCode /> <!--Optional but recommended-->
	  <ApplicationName /> <!--Optional. Will use Machine name if left empty -->
	  <layout type="log4net.Layout.PatternLayout">
		  <ConversionPattern value="%m" />
	  </layout>
	</appender>
  </log4net>

If you don't have a Knowvent Account, Signup for a free account an get your clientId and ApiKey.

3) Log Your First Event

log.Warn("Never miss an important issue again :-)");