From 8fee7db488b20a3da287850523f53d52597ad8ec Mon Sep 17 00:00:00 2001 From: egecetin Date: Sat, 28 Dec 2024 13:38:38 +0300 Subject: [PATCH] drop logger and fallback to default stdout --- src/logging/Logger.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/logging/Logger.cpp b/src/logging/Logger.cpp index 576d3088b..04a23ce46 100644 --- a/src/logging/Logger.cpp +++ b/src/logging/Logger.cpp @@ -49,4 +49,9 @@ MainLogger::~MainLogger() { spdlog::info("Goodbye!"); _mainLogger->flush(); + spdlog::drop(_mainLogger->name()); + + // Set default logger + spdlog::set_default_logger( + std::make_shared("default", std::make_shared())); }