|
hsw-nbt 1.2.0
OPTIGA Authenticate NBT Host Library for C
|
This library offers a C interface for logging data.
It offers generic ifx_logger_t struct that can be populated by concrete implementations. These ifx_logger_t struct are self-contained and can therefore be nested, joined, etc.
The actual ifx_logger_log() function uses printf syntax so it should feel familiar to C developers.
Wherever possible it is recommended that libraries keep track of the used logger instance themselves (e.g. via struct member). This enables configurable log configurations / levels across library layers. Where keeping track of this logger is not possible a default logger can be set using ifx_logger_set_default(). This default logger is then available via ifx_logger_default that can be passed to any log function.