The logger_default module provides the default concrete adapter for the logger port.
It implements logging on top of:
stream_t,The module is designed to:
logger contract through a concrete backend,logger_default-backed logger_t.Sub-APIs:
The logger_default module is a concrete adapter in the logger family.
It does not define a new public logging abstraction. Instead, it binds backend-specific behavior to the generic logger port by:
log and destroy callbacks,logger_t handles through logger_create().Typical responsibilities:
The Composition Root creates a logger_default-backed logger through:
The adapter depends on borrowed runtime services provided by the Composition Root through:
stream_t *const osal_time_ops_t *const osal_mem_ops_t *logger_env_tThese dependencies are aggregated in:
At runtime, the adapter:
If time acquisition fails, the adapter writes the fallback prefix:
"[timestamp error] "This module is a concrete adapter for the surrounding logger port.
See: