From 0c6bd851684bb3515b03bdf32fb570af47800b75 Mon Sep 17 00:00:00 2001 From: zhaohe Date: Thu, 22 Aug 2024 11:49:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- appdep/iflytop/core/spdlogfactory/logger_factory.cpp | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/appdep/iflytop/core/spdlogfactory/logger_factory.cpp b/appdep/iflytop/core/spdlogfactory/logger_factory.cpp index 6273809..c8b3a57 100644 --- a/appdep/iflytop/core/spdlogfactory/logger_factory.cpp +++ b/appdep/iflytop/core/spdlogfactory/logger_factory.cpp @@ -139,26 +139,17 @@ static bool c_daily_file_sink_mt(json j) { } }; #endif - static string default_config = R"( [ { "name": "infologger", "type": "daily_file_sink_mt", "filename": "logs/infolog.log", - "max_files": 30, + "max_files": 3, "rotate_on_open": true, "level" : 2 }, { - "name": "debuglogger", - "type": "daily_file_sink_mt", - "filename": "logs/debuglog.log", - "max_files": 10, - "rotate_on_open": true, - "level": 0 - }, - { "name": "terminal", "type": "stdout_color_sink_mt" }, @@ -168,7 +159,6 @@ static string default_config = R"( "level": 2, "sinks": [ "terminal", - "debuglogger", "infologger" ] }