From 3b2993a4eb0df0a394524e5a6b1f8599929537e1 Mon Sep 17 00:00:00 2001 From: taynpg Date: Mon, 13 Jan 2025 16:34:34 +0800 Subject: [PATCH] =?UTF-8?q?cancel=EF=BC=9A=E5=8F=96=E6=B6=88win=E4=B8=8Bin?= =?UTF-8?q?fo=E6=97=A5=E5=BF=97=E9=A2=9C=E8=89=B2=E4=B8=BA=E7=99=BD?= =?UTF-8?q?=E8=89=B2=E8=AE=BE=E7=BD=AE=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- util/util.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/util/util.cpp b/util/util.cpp index f74afc4..2ba5182 100644 --- a/util/util.cpp +++ b/util/util.cpp @@ -8,9 +8,6 @@ std::shared_ptr get_logger(const std::string& mark, const std::s auto file_sink = std::make_shared(log_file, g_BuffSize * 50, 3); auto console_sink = std::make_shared(); file_sink->set_pattern("[%Y-%m-%d %H:%M:%S.%e][%l]: %v"); -#ifdef _WIN32 - console_sink->set_color(spdlog::level::level_enum::info, 0xFFFF); -#endif console_sink->set_pattern("%^[%Y-%m-%d %H:%M:%S.%e][%l]: %v%$"); std::vector sinks{file_sink, console_sink}; auto logger = std::make_shared(mark, sinks.begin(), sinks.end());