diff options
| author | 刘文坛 <[email protected]> | 2023-11-10 08:26:48 +0000 |
|---|---|---|
| committer | 刘文坛 <[email protected]> | 2023-11-10 08:26:48 +0000 |
| commit | 91937cdbfbc04e746a3db7cbc9fae8430ca036e2 (patch) | |
| tree | 4a7fb2817966c5fbac051cd1f53f249b63079254 /deps | |
| parent | 98d4fb34ed662c001a9272cd78072a49f9aea57a (diff) | |
[FEATURE]support maat_scan_not_logic & maat_scan_groupv4.1.9
Diffstat (limited to 'deps')
| -rw-r--r-- | deps/log/log.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/deps/log/log.h b/deps/log/log.h index d815ed4..2d1cd21 100644 --- a/deps/log/log.h +++ b/deps/log/log.h @@ -22,14 +22,21 @@ extern "C" struct log_handle; -enum { LOG_TRACE, LOG_DEBUG, LOG_INFO, LOG_WARN, LOG_ERROR, LOG_FATAL }; +enum { + LOG_TRACE, + LOG_DEBUG, + LOG_INFO, + LOG_WARN, + LOG_ERROR, + LOG_FATAL +}; #define log_debug(handle, module, fmt, ...) log_print(handle, LOG_DEBUG, module, fmt, ##__VA_ARGS__) #define log_trace(handle, module, fmt, ...) log_print(handle, LOG_TRACE, module, fmt, ##__VA_ARGS__) -#define log_info(handle, module, fmt, ...) log_print(handle, LOG_INFO, module, fmt, ##__VA_ARGS__) -#define log_warn(handle, module, fmt, ...) log_print(handle, LOG_WARN, module, fmt, ##__VA_ARGS__) -#define log_error(handle, module, fmt, ...) log_print(handle, LOG_ERROR, module, fmt, ##__VA_ARGS__) -#define log_fatal(handle, module, fmt, ...) log_print(handle, LOG_FATAL, module, fmt, ##__VA_ARGS__) +#define log_info(handle, module, fmt, ...) log_print(handle, LOG_INFO, module, fmt, ##__VA_ARGS__) +#define log_warn(handle, module, fmt, ...) log_print(handle, LOG_WARN, module, fmt, ##__VA_ARGS__) +#define log_error(handle, module, fmt, ...) log_print(handle, LOG_ERROR, module, fmt, ##__VA_ARGS__) +#define log_fatal(handle, module, fmt, ...) log_print(handle, LOG_FATAL, module, fmt, ##__VA_ARGS__) void log_print(struct log_handle *, int level, const char *module, const char *fmt, ...); void log_options_set_enable(struct log_handle *, int enable); |
