From 24b7055136f362cbd08efa621448ba62dca72f9c Mon Sep 17 00:00:00 2001 From: k0t9i Date: Wed, 18 Oct 2023 15:59:18 +0400 Subject: [PATCH] refactor: config log channels for debug env --- L2BotDll/dllmain.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/L2BotDll/dllmain.cpp b/L2BotDll/dllmain.cpp index 63b3e96..ce31452 100644 --- a/L2BotDll/dllmain.cpp +++ b/L2BotDll/dllmain.cpp @@ -21,10 +21,14 @@ void ConfigLogger(HMODULE hModule) } std::vector > channels; +#ifdef _DEBUG channels.push_back(std::make_unique(std::vector{})); - channels.push_back(std::make_unique(directory + L"\\error.log", std::vector{ +#endif + channels.push_back(std::make_unique(directory + L"\\app.log", std::vector{ +#ifndef _DEBUG Logger::LogLevel::error, Logger::LogLevel::warning +#endif })); channels.push_back(std::make_unique(Enums::ChatChannelEnum::log, std::vector{ Logger::LogLevel::app