From 375799fa79d1af76f33299acc20a11a167a021f8 Mon Sep 17 00:00:00 2001 From: Felix Morgner Date: Thu, 17 Aug 2023 12:32:50 +0200 Subject: project: restructure libraries and build env --- source/lib/src/logging.cpp | 21 --------------------- 1 file changed, 21 deletions(-) delete mode 100644 source/lib/src/logging.cpp (limited to 'source/lib/src/logging.cpp') diff --git a/source/lib/src/logging.cpp b/source/lib/src/logging.cpp deleted file mode 100644 index 0aa7e40..0000000 --- a/source/lib/src/logging.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "wanda/logging.hpp" - -namespace wanda -{ - std::function initializer = [](spdlog::sink_ptr sink) { - spdlog::register_logger(std::make_shared("wanda", sink)); - initializer = [](auto) {}; - }; - - void initialize_logger(spdlog::sink_ptr sink) - { - initializer(sink); - } - - logger_ptr get_logger() - { - initialize_logger(); - return spdlog::get("wanda"); - } - -} // namespace wanda \ No newline at end of file -- cgit v1.2.3