日志操作器默认使用控制台处理器

This commit is contained in:
2024-09-19 13:14:22 +08:00
parent 556595be2b
commit b852bdceb8
6 changed files with 21 additions and 19 deletions

View File

@@ -4,7 +4,6 @@
int main() {
Logging *log = createLogging();
Logger *logger = log->getLogger("testLogger", LOG_DEBUG);
logger->addHandler(consoleHandler("test"));
logger->info("This is an info message");
logger->error("你好,这是一个错误消息%s", "123");
@@ -22,7 +21,6 @@ int main() {
logger->info("This is an info message");
logger->error("你好,这是一个错误消息%s", "123");
logger->fatal("This is an fatal message");
logger->debug("This is a debug message");
logger->warning("This is a warning message%s", "123");