#include <stdint.h>
#include <stdarg.h>
Go to the source code of this file.
Macros | |
#define | MIP_LOG_DEBUG(...) MIP_LOG_LOG(MIP_LOG_LEVEL_DEBUG, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at debug level. More... | |
#define | MIP_LOG_ERROR(...) MIP_LOG_LOG(MIP_LOG_LEVEL_ERROR, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at error level. More... | |
#define | MIP_LOG_FATAL(...) MIP_LOG_LOG(MIP_LOG_LEVEL_FATAL, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at fatal level. More... | |
#define | MIP_LOG_INFO(...) MIP_LOG_LOG(MIP_LOG_LEVEL_INFO, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at info level. More... | |
#define | MIP_LOG_INIT(callback, level, user) (void)0 |
Helper macro used to initialize the MIP logger. More... | |
#define | MIP_LOG_LEVEL_DEBUG 5 |
Debug logs are logged for debug purposes. More... | |
#define | MIP_LOG_LEVEL_ERROR 2 |
Error logs are logged when an error occurs. More... | |
#define | MIP_LOG_LEVEL_FATAL 1 |
Fatal logs are logged when an unrecoverable error occurs. More... | |
#define | MIP_LOG_LEVEL_INFO 4 |
Info logs are logged when some general info needs to be conveyed to the user. More... | |
#define | MIP_LOG_LEVEL_OFF 0 |
Signifies that the log is turned off. More... | |
#define | MIP_LOG_LEVEL_TRACE 6 |
Trace logs are logged in similar cases to debug logs but can be logged in tight loops. More... | |
#define | MIP_LOG_LEVEL_WARN 3 |
Warning logs are logged when something concerning happens that may or not be a mistake. More... | |
#define | MIP_LOG_LOG(level, ...) (void)0 |
Helper macro used to log data inside the MIP SDK. More... | |
#define | MIP_LOG_TRACE(...) MIP_LOG_LOG(MIP_LOG_LEVEL_TRACE, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at trace level. More... | |
#define | MIP_LOG_WARN(...) MIP_LOG_LOG(MIP_LOG_LEVEL_WARN, __VA_ARGS__) |
Helper macro used to log data inside the MIP SDK at warn level. More... | |
Typedefs | |
typedef void(* | mip_log_callback) (void *user, mip_log_level level, const char *fmt, va_list args) |
Callback function typedef for custom logging behavior. More... | |
typedef uint8_t | mip_log_level |
Logging level enum. More... | |
Functions | |
mip_log_callback | mip_logging_callback () |
Gets the currently active logging callback. More... | |
void | mip_logging_init (mip_log_callback callback, mip_log_level level, void *user) |
Initializes the logger with a callback and user data. More... | |
mip_log_level | mip_logging_level () |
Gets the currently active logging level. More... | |
void | mip_logging_log (mip_log_level level, const char *fmt,...) |
Internal log function called by logging macros. More... | |
void * | mip_logging_user_data () |
Gets the currently active logging user data. More... | |