mirror of
https://github.com/isar/libmdbx.git
synced 2025-08-23 09:04:26 +08:00
mdbx: refine internal debug facilities.
Change-Id: I934cb8587f07c59268b16a0dd99daeb7ac440e62
This commit is contained in:
18
test/log.h
18
test/log.h
@@ -24,14 +24,14 @@ const char *test_strerror(int errnum);
|
||||
namespace logging {
|
||||
|
||||
enum loglevel {
|
||||
extra,
|
||||
trace,
|
||||
verbose,
|
||||
info,
|
||||
notice,
|
||||
warning,
|
||||
error,
|
||||
failure,
|
||||
extra = MDBX_LOG_EXTRA,
|
||||
trace = MDBX_LOG_TRACE,
|
||||
debug = MDBX_LOG_DEBUG,
|
||||
info = MDBX_LOG_VERBOSE,
|
||||
notice = MDBX_LOG_NOTICE,
|
||||
warning = MDBX_LOG_WARN,
|
||||
error = MDBX_LOG_ERROR,
|
||||
failure = MDBX_LOG_FATAL
|
||||
};
|
||||
|
||||
const char *level2str(const loglevel level);
|
||||
@@ -66,7 +66,7 @@ public:
|
||||
|
||||
void __printf_args(1, 2) log_extra(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_trace(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_verbose(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_debug(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_info(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_notice(const char *msg, ...);
|
||||
void __printf_args(1, 2) log_warning(const char *msg, ...);
|
||||
|
Reference in New Issue
Block a user