Zigbee Protocol Controller 1.6.0
|
Go to the source code of this file.
Macros | |
#define | sl_log_byte_arr(tag, lvl, _arr, _arr_len) |
#define | COLOR_START "\033[32;1m" |
#define | COLOR_END "\033[0m" |
#define | sl_log_debug(tag, fmtstr, ...) sl_log(tag, SL_LOG_DEBUG, fmtstr, ##__VA_ARGS__) |
#define | sl_log_info(tag, fmtstr, ...) sl_log(tag, SL_LOG_INFO, fmtstr, ##__VA_ARGS__) |
#define | sl_log_warning(tag, fmtstr, ...) sl_log(tag, SL_LOG_WARNING, fmtstr, ##__VA_ARGS__) |
#define | sl_log_error(tag, fmtstr, ...) sl_log(tag, SL_LOG_ERROR, fmtstr, ##__VA_ARGS__) |
#define | sl_log_critical(tag, fmtstr, ...) sl_log(tag, SL_LOG_CRITICAL, fmtstr, ##__VA_ARGS__) |
Typedefs | |
typedef enum sl_log_level | sl_log_level_t |
Log levels. More... | |
Enumerations | |
enum | sl_log_level { SL_LOG_DEBUG , SL_LOG_INFO , SL_LOG_WARNING , SL_LOG_ERROR , SL_LOG_CRITICAL } |
Log levels. More... | |
Functions | |
void | sl_log_set_level (sl_log_level_t level) |
Set log level. More... | |
sl_log_level_t | sl_log_get_level () |
Get log level. More... | |
void | sl_log_set_tag_level (const char *tag, sl_log_level_t level) |
Set log level for a given tag. More... | |
void | sl_log_unset_tag_level (const char *tag) |
Remove tag specific log level for tag. More... | |
sl_status_t | sl_log_level_from_string (const char *level, sl_log_level_t *result) |
Convert sl_log_level as string to sl_log_level_t. More... | |
void | sl_log_read_config () |
Read configuration from config library. More... | |
void | sl_log (const char *const tag, sl_log_level_t level, const char *fmtstr,...) |
Write to the log. More... | |