C# Class Log4Mongo.MongoDBAppender

Inheritance: log4net.Appender.AppenderSkeleton
Show file Open project: log4mongo/log4mongo-net Class Usage Examples

Private Properties

Property Type Description
BuildBsonDocument BsonDocument
CollectionExists bool
CreateCollection void
CreateExpiryAfterIndex void
EnsureCollectionExists void
GetCertificate System.Security.Cryptography.X509Certificates.X509Certificate2
GetCollection IMongoCollection
GetConnectionString string
GetDatabase IMongoDatabase
GetSslSettings SslSettings
SetCappedCollectionOptions void

Public Methods

Method Description
AddField ( Log4Mongo.MongoAppenderFileld fileld ) : void

Protected Methods

Method Description
Append ( log4net.Core.LoggingEvent loggingEvent ) : void

Private Methods

Method Description
BuildBsonDocument ( log4net.Core.LoggingEvent log ) : BsonDocument
CollectionExists ( IMongoDatabase db, string collectionName ) : bool
CreateCollection ( IMongoDatabase db, string collectionName ) : void
CreateExpiryAfterIndex ( IMongoCollection collection ) : void
EnsureCollectionExists ( IMongoDatabase db, string collectionName ) : void
GetCertificate ( string certificateFriendlyName ) : X509Certificate2
GetCollection ( ) : IMongoCollection
GetConnectionString ( ) : string
GetDatabase ( ) : IMongoDatabase
GetSslSettings ( ) : SslSettings
SetCappedCollectionOptions ( MongoDB.Driver.CreateCollectionOptions options ) : void

Method Details

AddField() public method

public AddField ( Log4Mongo.MongoAppenderFileld fileld ) : void
fileld Log4Mongo.MongoAppenderFileld
return void

Append() protected method

protected Append ( log4net.Core.LoggingEvent loggingEvent ) : void
loggingEvent log4net.Core.LoggingEvent
return void