HAKOM.Logging.HakomDatabaseLog.Net.Api Namespace
Contains the public API for writing structured log messages into HAKOM databases.
Remarks
Section titled “Remarks”This namespace defines the core abstractions for database logging:
- IHakomDatabaseLogEntry — Represents a single log entry with a session, log level, message, and source.
- IHakomDatabaseLoggerOptions — Configures the database logger behavior including the target repository, log level, and queue parameters.
- Session — A value type representing a logging session scope, used to group related log entries together in the database.
- ISessionFactory — Creates and manages Session instances.
Sessions are the HAKOM-specific implementation of the concept of “scopes” in Microsoft.Extensions.Logging. Use BeginSession(this ILogger) to start a session, and dispose the returned System.IDisposable to end it.
using (var session = logger.BeginSession()){ logger.LogInformation("Processing started"); logger.LogInformation("Processing completed");} // session is closed automatically| Structs | |
|---|---|
| Session | Represents a session within the database logs, grouping related log entries together. |
| Interfaces | |
|---|---|
| IHakomDatabaseLogEntry | Represents a single entry in a HAKOM database log. |
| IHakomDatabaseLoggerOptions | Configures the behavior of a HAKOM database logger. |
| ISessionFactory | Creates Session instances for structured logging in a HAKOM log database. |
Was this page helpful?Thanks for your feedback!