LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
logger_cr_api.h File Reference

Composition Root helpers for the logger port. More...

Include dependency graph for logger_cr_api.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

logger_env_t logger_default_env (const osal_mem_ops_t *mem_ops)
 Build a default logger_env_t from injected memory operations.
 

Detailed Description

This header exposes small CR-facing helpers used to build default public logger port wiring objects.

Note
This API belongs to the Composition Root surface. Runtime modules should not depend on it directly.

Definition in file logger_cr_api.h.

Function Documentation

◆ logger_default_env()

logger_env_t logger_default_env ( const osal_mem_ops_t mem_ops)
Parameters
[in]mem_opsMemory operations to expose through the returned environment.
Returns
A logger_env_t such that ret.mem == mem_ops.
Note
This helper does not allocate and performs no validation. It only packages the provided dependency into a public logger_env_t.

Definition at line 22 of file logger.c.