27 #ifndef EMBB_BASE_C_LOG_H_ 28 #define EMBB_BASE_C_LOG_H_ 30 #include <embb/base/c/internal/config.h> 88 embb_log_level_t log_level
119 char const * channel,
123 embb_log_level_t log_level,
124 char const * message,
131 #if defined(EMBB_DEBUG) || defined(DOXYGEN) 141 char const * channel,
142 char const * message,
158 char const * channel,
159 char const * message,
166 #define embb_log_trace(...) 167 #define embb_log_info(...) 178 char const * channel,
179 char const * message,
194 char const * channel,
195 char const * message,
203 void embb_log_write_internal(
204 char const * channel,
205 embb_log_level_t log_level,
206 char const * message,
void embb_log_set_log_function(void *context, embb_log_function_t func)
Sets the global logging function.
void embb_log_error(char const *channel, char const *message,...)
Logs a message to the given channel with EMBB_LOG_LEVEL_ERROR using embb_log_write().
show everything
Definition: log.h:52
show no log messages
Definition: log.h:48
void(* embb_log_function_t)(void *context, char const *message)
Logging function type.
Definition: log.h:65
void embb_log_write(char const *channel, embb_log_level_t log_level, char const *message,...)
Logs a message to the given channel with the specified log level.
void embb_log_warning(char const *channel, char const *message,...)
Logs a message to the given channel with EMBB_LOG_LEVEL_WARNING using embb_log_write().
show info, warnings, and errors
Definition: log.h:51
show warnings and errors
Definition: log.h:50
void embb_log_info(char const *channel, char const *message,...)
Logs a message to the given channel with EMBB_LOG_LEVEL_INFO using embb_log_write().
void embb_log_set_log_level(embb_log_level_t log_level)
Sets the global log level.
void embb_log_trace(char const *channel, char const *message,...)
Logs a message to the given channel with EMBB_LOG_LEVEL_TRACE using embb_log_write().
show errors only
Definition: log.h:49
void embb_log_write_file(void *context, char const *message)
Default logging function.
embb_log_level_t
Log levels available for filtering the log.
Definition: log.h:47