C# Class log4net.Raven.RavenAppender

Inheritance: log4net.Appender.BufferingAppenderSkeleton
Mostra file Open project: antonsamarsky/log4net.Raven

Public Methods

Method Description
ActivateOptions ( ) : void
RavenAppender ( ) : System

Initializes a new instance of the RavenAppender class.

RavenAppender ( IDocumentStore documentStore ) : System

Initializes a new instance of the RavenAppender class.

Protected Methods

Method Description
OnClose ( ) : void
SendBuffer ( log4net.Core.LoggingEvent events ) : void

Private Methods

Method Description
CheckSession ( ) : void

IDocumentSession - Instances of this interface are created by the DocumentStore, they are cheap to create and not thread safe. If an exception is thrown by an IDocumentSession method, the behavior of all of the methods (except Dispose) is undefined. The document session is used to interact with the Raven database, load data from the database, query the database, save and delete. Instances of this interface implement the Unit of Work pattern and change tracking.

CreateStore ( ) : IDocumentStore
InitServer ( ) : void

IDocumentStore - This is expensive to create, thread safe and should only be created once per application. The Document Store is used to create DocumentSessions, to hold the conventions related to saving/loading data and any other global configuration.

Method Details

ActivateOptions() public method

public ActivateOptions ( ) : void
return void

OnClose() protected method

protected OnClose ( ) : void
return void

RavenAppender() public method

Initializes a new instance of the RavenAppender class.
public RavenAppender ( ) : System
return System

RavenAppender() public method

Initializes a new instance of the RavenAppender class.
public RavenAppender ( IDocumentStore documentStore ) : System
documentStore IDocumentStore The document store.
return System

SendBuffer() protected method

protected SendBuffer ( log4net.Core.LoggingEvent events ) : void
events log4net.Core.LoggingEvent
return void