Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

log4net integration with RavenDB

branch: master
README
log4net.Raven
==============================

A log4net(http://logging.apache.org/log4net) appender implementation using RavenDB(http://ravendb.net).

==============================
NuGet
==============================

The easiest way to install is via the NuGet package (http://nuget.org/List/Packages/log4net.Raven).

==============================
Configuration:
==============================
<configuration>

	<configSections>
		<section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" />
	</configSections>
	
	<connectionStrings>
		<add name="RavenLogs" connectionString="Url = http://raven; DefaultDatabase=Log"/>
	</connectionStrings>
	
	<log4net>
		<appender name="RavenAppender" type="log4net.Raven.RavenAppender, log4net.Raven">
			<filter type="log4net.Filter.LevelRangeFilter">
				<levelMin value="INFO" />
				<levelMax value="FATAL" />
			</filter>
			<connectionString value="RavenLogs"/>
			<maxNumberOfRequestsPerSession value="100"/>
			<bufferSize value="50" />
			<evaluator type="log4net.Core.LevelEvaluator">
				<threshold value="ERROR" />
			</evaluator>
		</appender>
		<root>
			<level value="ALL"/>
			<appender-ref ref="RavenAppender" />
		</root>
	</log4net>
	
</configuration>

==============================
Notes:
==============================
Appender implements BufferingAppenderSkeleton.




Something went wrong with that request. Please try again.