#fix 拦截器对level参数无效

This commit is contained in:
2024-11-21 15:39:50 +08:00
parent 915c18640a
commit 5c24b070bb
5 changed files with 27 additions and 17 deletions

View File

@@ -6,7 +6,7 @@ extern "C" {
#endif
typedef enum {
LOG_FATAL,
LOG_FATAL = 0,
LOG_ERROR,
LOG_WARNING,
LOG_INFO,

View File

@@ -18,7 +18,7 @@ typedef struct log_Interceptor {
log_Handler *handler;
bool jump_out;
bool (*_dispose)(struct log_Interceptor *Interceptor,
char *level,
log_level level,
const char *message,
...);
void (*_free)(struct log_Interceptor *Interceptor);