Type Definitions#
Core type definitions for the logging system.
Modules#
Enumerations#
Log level enumeration.
Maximum log arguments enumeration.
Variables#
Structure representing a single log event.
Unique event identifier (pointer to format string or numeric ID)
Array of arguments associated with the event (up to SL_LOG_CONFIG_ARG items)
Number of valid arguments in the args array (0 to SL_LOG_CONFIG_ARG)
Core identifier that generated the event (0 = host core)
Event flags - bits 1-7: log level, bit 0: event type (0=format string, 1=numeric)
Version of the logging component that generated this event.
Enumeration Documentation#
sl_log_level_t#
sl_log_level_t
Log level enumeration.
Defines the various log levels available in the system, from no logging to crash-level events. Higher numeric values indicate more critical events.
The log levels are hierarchical - enabling a higher level automatically includes all lower-numbered (more critical) levels.
| Enumerator | |
|---|---|
| SL_LOG_ENUM_CONFIG_DEBUG | Debug level - detailed debugging information. |
| SL_LOG_ENUM_CONFIG_INFO | Information level - general informational messages. |
| SL_LOG_ENUM_CONFIG_WARN | Warning level - warning conditions that should be noted. |
| SL_LOG_ENUM_CONFIG_ERROR | Error level - error conditions that affect functionality. |
| SL_LOG_ENUM_CONFIG_CRASH | Crash level - critical system failures. |
| SL_LOG_ENUM_CONFIG_NONE | No logging - all log messages are disabled. |
| SL_LOG_ENUM_CONFIG_INVALID | Invalid level - used for validation purposes. |
sl_log_args_t#
sl_log_args_t
Maximum log arguments enumeration.
Defines the maximum number of arguments that can be passed to log functions. This setting affects memory usage and performance - higher values provide more flexibility but consume more resources.
| Enumerator | |
|---|---|
| SL_LOG_ENUM_CONFIG_ARG0 | No arguments supported - string-only logging. |
| SL_LOG_ENUM_CONFIG_ARG1 | Up to 1 argument supported. |
| SL_LOG_ENUM_CONFIG_ARG2 | Up to 2 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG3 | Up to 3 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG4 | Up to 4 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG5 | Up to 5 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG6 | Up to 6 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG7 | Up to 7 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG8 | Up to 8 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG9 | Up to 9 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG10 | Up to 10 arguments supported. |
| SL_LOG_ENUM_CONFIG_ARG_INVALID | Invalid argument count - used for validation. |
Variable Documentation#
__PACKED_STRUCT#
typedef __PACKED_STRUCT
Structure representing a single log event.
This structure contains all information for a single log event, including timing information, event identification, arguments, and metadata. Events are stored in a ring buffer and transmitted to the selected backend.
Note
The total size of this structure affects memory usage and should be kept as compact as possible for embedded systems.
args#
uint32_t args[SL_LOG_CONFIG_ARG]
Array of arguments associated with the event (up to SL_LOG_CONFIG_ARG items)
flags#
uint8_t flags
Event flags - bits 1-7: log level, bit 0: event type (0=format string, 1=numeric)