Skip to content
log4net integration with RavenDB
C#
Find file
Latest commit 0020500 Jul 11, 2015 @antonsamarsky Merge pull request #2 from yanetc/master
Updated to .net framework 4.5.2
Failed to load latest commit information.
NuGet Update to 4.5.2 Apr 29, 2015
log4net.Raven CheckSession Apr 29, 2015
.gitignore ignore list Apr 27, 2015
README Update README file to use log4net.Raven as external source, as Mr. co… Jan 19, 2012

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.