IHakomDatabaseLogStore Interface
HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence
Section titled “HAKOM.Logging.HakomDatabaseLog.Net.Api.Persistence”Used to write log entries into a repository.
public interface IHakomDatabaseLogStore : HAKOM.Persistence.Core.Net.Api.Storage.IStore<HAKOM.Persistence.Core.Net.Api.Storage.IStorageProvider>Implements HAKOM.Persistence.Core.Net.Api.Storage.IStore<IStorageProvider>
Methods
Section titled “Methods”IHakomDatabaseLogStore.SupportsLogLevel(LogLevel) Method
Section titled “IHakomDatabaseLogStore.SupportsLogLevel(LogLevel) Method”Returns whether this IHakomDatabaseLogStore supports the given Microsoft.Extensions.Logging.LogLevel.
bool SupportsLogLevel(Microsoft.Extensions.Logging.LogLevel logLevel);Parameters
Section titled “Parameters”logLevel Microsoft.Extensions.Logging.LogLevel
The Microsoft.Extensions.Logging.LogLevel to check for support.
Returns
Section titled “Returns”System.Boolean
True if logLevel is supported, false otherwise.
IHakomDatabaseLogStore.Write(IHakomDatabaseLogEntry, CancellationToken) Method
Section titled “IHakomDatabaseLogStore.Write(IHakomDatabaseLogEntry, CancellationToken) Method”Writes the given IHakomDatabaseLogEntry into the repository.
System.Threading.Tasks.Task Write(HAKOM.Logging.HakomDatabaseLog.Net.Api.IHakomDatabaseLogEntry entry, System.Threading.CancellationToken cancellationToken);Parameters
Section titled “Parameters”entry IHakomDatabaseLogEntry
The entry to write.
cancellationToken System.Threading.CancellationToken
A System.Threading.CancellationToken that can be used to attempt to cancel the write operation.
Returns
Section titled “Returns”System.Threading.Tasks.Task
A System.Threading.Tasks.Task that completes when the entry has been successfully written.