Class MongoDBLogMessageDataStore
Implements a store that sends log messages into MongoDB
Inheritance
System.Object
MongoDBLogMessageDataStore
Implements
System.IDisposable
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NFX.DataAccess.MongoDB
Assembly: NFX.MongoDB.dll
Syntax
public class MongoDBLogMessageDataStore : MongoDBDataStoreBase, IDataStoreImplementation, IDataStore, IApplicationComponent, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
Constructors
MongoDBLogMessageDataStore()
Declaration
public MongoDBLogMessageDataStore()
MongoDBLogMessageDataStore(String, String, String)
Declaration
public MongoDBLogMessageDataStore(string connectString, string dbName, string collectionName)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectString | |
System.String | dbName | |
System.String | collectionName |
Fields
CONFIG_COLLECTION_NAME_DEFAULT
Declaration
public const string CONFIG_COLLECTION_NAME_DEFAULT = "nfx_log"
Field Value
Type | Description |
---|---|
System.String |
Properties
CollectionName
Gets/sets collection name used for logging
Declaration
[Config("$collection")]
public string CollectionName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
SendMessage(Message)
Inserts log message into MongoDB
Declaration
public void SendMessage(Message msg)
Parameters
Type | Name | Description |
---|---|---|
Message | msg |
Implements
System.IDisposable