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)
Namespace: Azos.Data.Access.MongoDb
Assembly: Azos.MongoDb.dll
Syntax
public class MongoDbLogMessageDataStore : MongoDbDataStoreBase, IDataStoreImplementation, IDataStore, IApplicationComponent, IDisposable, IConfigurable, IInstrumentable, IExternallyParameterized
Constructors
MongoDbLogMessageDataStore(IApplicationComponent)
Declaration
public MongoDbLogMessageDataStore(IApplicationComponent director)
Parameters
Type | Name | Description |
---|---|---|
IApplicationComponent | director |
MongoDbLogMessageDataStore(IApplication)
Declaration
public MongoDbLogMessageDataStore(IApplication app)
Parameters
Type | Name | Description |
---|---|---|
IApplication | app |
Fields
CONFIG_COLLECTION_NAME_DEFAULT
Declaration
public const string CONFIG_COLLECTION_NAME_DEFAULT = "azos_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