From 5c6dcd041fdfcacbd3c64f87b8fb602ed818cfdd Mon Sep 17 00:00:00 2001 From: ziyue <1213642868@qq.com> Date: Thu, 24 Feb 2022 11:30:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dc=20api=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E8=AE=BE=E7=BD=AE=E5=8F=AF=E8=83=BD=E5=87=BA?= =?UTF-8?q?=E9=94=99=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/source/mk_common.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/source/mk_common.cpp b/api/source/mk_common.cpp index 840a0424..33b5287d 100644 --- a/api/source/mk_common.cpp +++ b/api/source/mk_common.cpp @@ -87,7 +87,7 @@ API_EXPORT void API_CALL mk_env_init1(int thread_num, if (log_mask & LOG_FILE) { //日志文件 auto channel = std::make_shared("FileChannel", - log_file_path ? File::absolutePath(log_file_path, "") : + log_file_path ? File::absolutePath("", log_file_path) : exeDir() + "log/", (LogLevel) log_level); channel->setMaxDay(log_file_days ? log_file_days : 1); Logger::Instance().add(channel);