Skip to content

antonsamarsky/log4net.Raven

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.




About

log4net integration with RavenDB

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages