The logger port defines the common logging abstraction used by the foundation layer.
It provides:
logger_t handles,logger port.The module is designed to separate:
Sub-APIs:
The logger module is a foundation port. It defines the public logging boundary used by runtime code, while concrete adapter modules provide backend-specific implementations.
Typical responsibilities:
logger_t handle and status model,Runtime code emits messages through logger_t handles using the public borrower API:
Concrete adapters bind backend logic to the generic logger port through:
The Composition Root can prepare the runtime environment of the port through:
Concrete adapters for this port are documented in the surrounding logger family.
See: