#pragma once
#include <stdint.h>
#include <simpleble/export.h>
typedef enum {
SIMPLEBLE_LOG_LEVEL_NONE = 0,
SIMPLEBLE_LOG_LEVEL_FATAL,
SIMPLEBLE_LOG_LEVEL_ERROR,
SIMPLEBLE_LOG_LEVEL_WARN,
SIMPLEBLE_LOG_LEVEL_INFO,
SIMPLEBLE_LOG_LEVEL_DEBUG,
SIMPLEBLE_LOG_LEVEL_VERBOSE
} simpleble_log_level_t;
typedef void (*simpleble_log_callback_t)(
simpleble_log_level_t level,
const char* module,
const char* file,
uint32_t line,
const char* function,
const char* message
);
#ifdef __cplusplus
extern "C" {
#endif
SIMPLEBLE_EXPORT void simpleble_logging_set_level(simpleble_log_level_t level);
SIMPLEBLE_EXPORT void simpleble_logging_set_callback(simpleble_log_callback_t callback);
#ifdef __cplusplus
}
#endif