#将拦截器改名为过滤器,更加接近职能

This commit is contained in:
2024-11-23 08:08:21 +08:00
parent 9b777e4862
commit 1c09c41ea3
16 changed files with 166 additions and 160 deletions

14
tests/test-simple.c Normal file
View File

@@ -0,0 +1,14 @@
#include "logging.h"
int main() {
Logger *logger = newDefaultLogger("testLogger", LOG_DEBUG);
log_info("This is an info message");
log_error("This is an error message%s", "123");
log_fatal("This is an fatal message");
log_debug("This is a debug message");
log_warning("This is a warning message%s", "123");
destroyDefaultLogger();
return 0;
}