Skip to content
Documentation

IHakomDatabaseLogEntry Interface

Represents a single entry in a HAKOM database log.

public interface IHakomDatabaseLogEntry

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.

Gets the Microsoft.Extensions.Logging.LogLevel of the entry.

Microsoft.Extensions.Logging.LogLevel LogLevel { get; }

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.

Gets the formatted log message.

string Message { get; }

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.

Gets the Session this entry belongs to.

HAKOM.Logging.HakomDatabaseLog.Net.Api.Session Session { get; }

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.

Gets the source (category name) that identifies the component which created this entry.

string Source { get; }

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)).

© 2026 Volue.Version v0.6.38017 November 2026