aboutsummaryrefslogtreecommitdiff
path: root/source/src/wanda/logging.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'source/src/wanda/logging.cpp')
-rw-r--r--source/src/wanda/logging.cpp21
1 files changed, 0 insertions, 21 deletions
diff --git a/source/src/wanda/logging.cpp b/source/src/wanda/logging.cpp
deleted file mode 100644
index 8c61953..0000000
--- a/source/src/wanda/logging.cpp
+++ /dev/null
@@ -1,21 +0,0 @@
-#include <wanda/logging.hpp>
-
-namespace wanda
-{
- std::function<void(spdlog::sink_ptr)> initializer = [](spdlog::sink_ptr sink) {
- spdlog::register_logger(std::make_shared<spdlog::logger>("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