Skip to content

Logging

NameDescription
LoggerConfigRuntime configuration for the SDK logging bootstrap.
NameDescription
BackendTypeEnumerates the logging backends that the SDK can activate at runtime.

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

ValueDescription
DefaultSelects the SDK’s preferred backend for this build.
QtLoggingForces the pure Qt message-handler backend.
SpdlogRequests the spdlog-backed backend compiled into this SDK artifact.
ReturnNameDescription
QHash<QString, QString>defaultCategoryMappingsReturns the SDK’s built-in category mapping defaults.
voidinitLoggerInstalls the SDK message handler.
voidshutdownLoggerRestores the previous Qt message handler and flushes any SDK-managed logger state.

QHash<QString, QString> 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.


void initLogger(const LoggerConfig& config = LoggerConfig())

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.

NameTypeDescription
configconst LoggerConfig&Runtime logging configuration.

void shutdownLogger()

Restores the previous Qt message handler and flushes any SDK-managed logger state.