LexLeo 0.0.0-dev+f8e5087-dirty
Technical documentation
Loading...
Searching...
No Matches
logger_default_env_t Struct Reference

Injected dependencies for the logger_default adapter. More...

#include <logger_default_types.h>

Collaboration diagram for logger_default_env_t:

Data Fields

stream_tstream
 Borrowed target stream used by the adapter.
 
const osal_time_ops_ttime_ops
 Borrowed time operations used for timestamp generation.
 
const osal_mem_ops_tadapter_mem
 Borrowed memory operations used for adapter-backend allocation.
 
logger_env_t port_env
 Borrowed logger port environment.
 

Detailed Description

This structure aggregates the borrowed runtime dependencies provided by the Composition Root and required by logger_default construction services.

Definition at line 56 of file logger_default_types.h.

Field Documentation

◆ adapter_mem

const osal_mem_ops_t* logger_default_env_t::adapter_mem

These memory operations are used to allocate and destroy the private backend object owned by the logger_default adapter.

Definition at line 85 of file logger_default_types.h.

◆ port_env

logger_env_t logger_default_env_t::port_env

This environment is forwarded to logger_create() when constructing the public logger_t handle.

Definition at line 94 of file logger_default_types.h.

◆ stream

stream_t* logger_default_env_t::stream

The adapter writes emitted log messages to this stream. The stream remains owned by the caller and is not destroyed by the logger_default adapter.

Definition at line 65 of file logger_default_types.h.

◆ time_ops

const osal_time_ops_t* logger_default_env_t::time_ops

These operations are used to obtain the current time when producing timestamped log records. The operations table remains owned by the caller and is not modified by the logger_default adapter.

Definition at line 76 of file logger_default_types.h.