IHakomDatabaseLogEntry Interface
Represents a single entry in a HAKOM database log.
public interface IHakomDatabaseLogEntryRemarks
Section titled “Remarks”Each log entry captures a Session, a Microsoft.Extensions.Logging.LogLevel, a human-readable Message, and a Source identifying the component that produced the entry. Entries are created internally by the database logger and written to the configured repository through an IHakomDatabaseLogStore.
When a Session is active (started via BeginSession(this ILogger)), log entries are grouped under that session in the database. When no session is active, the entry is written with a default (empty) session.
Properties
Section titled “Properties”IHakomDatabaseLogEntry.LogLevel Property
Section titled “IHakomDatabaseLogEntry.LogLevel Property”Gets the Microsoft.Extensions.Logging.LogLevel of the entry.
Microsoft.Extensions.Logging.LogLevel LogLevel { get; }Property Value
Section titled “Property Value”Microsoft.Extensions.Logging.LogLevel
The severity level of this log entry, such as Microsoft.Extensions.Logging.LogLevel.Information,
Microsoft.Extensions.Logging.LogLevel.Warning, or Microsoft.Extensions.Logging.LogLevel.Error.
IHakomDatabaseLogEntry.Message Property
Section titled “IHakomDatabaseLogEntry.Message Property”Gets the formatted log message.
string Message { get; }Property Value
Section titled “Property Value”System.String
A System.String containing the formatted log message text as produced by the
Microsoft.Extensions.Logging.ILogger.Log<>.Extensions.Logging.LogLevel,Microsoft.Extensions.Logging.EventId,<>.Exception,System.Func{<>.Exception,System.String})
formatter delegate.
IHakomDatabaseLogEntry.Session Property
Section titled “IHakomDatabaseLogEntry.Session Property”Gets the Session this entry belongs to.
HAKOM.Logging.HakomDatabaseLog.Net.Api.Session Session { get; }Property Value
Section titled “Property Value”Session
The Session that was active when this entry was created.
If no session was active, this is a default Session with an empty System.Guid.
IHakomDatabaseLogEntry.Source Property
Section titled “IHakomDatabaseLogEntry.Source Property”Gets the source (category name) that identifies the component which created this entry.
string Source { get; }Property Value
Section titled “Property Value”System.String
A System.String typically containing the fully qualified type name of the class
that requested the Microsoft.Extensions.Logging.ILogger (i.e. the category name passed to
Microsoft.Extensions.Logging.ILoggerFactory.CreateLogger(System.String)).