Logging
Classes
Section titled “Classes”| Name | Description |
|---|---|
LoggerConfig | Runtime configuration for the SDK logging bootstrap. |
Enumerations
Section titled “Enumerations”| Name | Description |
|---|---|
BackendType | Enumerates the logging backends that the SDK can activate at runtime. |
BackendType
Section titled “BackendType”Enumerates the logging backends that the SDK can activate at runtime.
The public API intentionally exposes only the backend choice, not the internal backend classes, so applications can request behavior without taking a source-level dependency on implementation details.
| Value | Description |
|---|---|
Default | Selects the SDK’s preferred backend for this build. |
QtLogging | Forces the pure Qt message-handler backend. |
Spdlog | Requests the spdlog-backed backend compiled into this SDK artifact. |
Functions
Section titled “Functions”| Return | Name | Description |
|---|---|---|
QHash<QString, QString> | defaultCategoryMappings | Returns the SDK’s built-in category mapping defaults. |
void | initLogger | Installs the SDK message handler. |
void | shutdownLogger | Restores the previous Qt message handler and flushes any SDK-managed logger state. |
defaultCategoryMappings
Section titled “defaultCategoryMappings”Returns the SDK’s built-in category mapping defaults.
These defaults keep plain Qt categories readable in sink output while giving the unscoped qDebug() path a stable application scope instead of the literal Qt "default" category.
initLogger
Section titled “initLogger”Installs the SDK message handler.
After this function is called, ordinary qDebug(), qInfo(), qWarning(), and related Qt logging APIs continue to be the public application interface. The SDK resolves the requested backend at runtime, installs its SDK-owned Qt message handler, and then either writes records directly in a Qt-style format or forwards them into spdlog depending on the active backend.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
config | const LoggerConfig& | Runtime logging configuration. |
shutdownLogger
Section titled “shutdownLogger”Restores the previous Qt message handler and flushes any SDK-managed logger state.