feat: 3.9.5.81 基础收发功能

This commit is contained in:
hugy committed 2023-06-26 18:23:47 +08:00
1 parent 66ea9d5428
commit 5a9f91b425
38 files changed
+21363 -28

No files matched your search

+21
View File
@@ -0,0 +1,21 @@
#include "pch.h"
#include "log.h"
#define SPDLOG_ACTIVE_LEVEL SPDLOG_LEVEL_INFO
namespace wxhelper {
Log::Log() {}
Log::~Log() {}
void Log::Initialize() {
auto logger =
spdlog::daily_logger_mt("daily_logger", "logs/daily.txt", 23, 59);
logger->flush_on(spdlog::level::err);
spdlog::set_default_logger(logger);
spdlog::flush_every(std::chrono::seconds(3));
spdlog::set_level(spdlog::level::debug);
spdlog::set_pattern("%Y-%m-%d %H:%M:%S [%l] [%t] - <%s>|<%#>|<%!>,%v");
}
} // namespace wxhelper