diff options
Diffstat (limited to 'source/lib/system/src/logging.cpp')
| -rw-r--r-- | source/lib/system/src/logging.cpp | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/source/lib/system/src/logging.cpp b/source/lib/system/src/logging.cpp deleted file mode 100644 index 83dc9f6..0000000 --- a/source/lib/system/src/logging.cpp +++ /dev/null @@ -1,21 +0,0 @@ -#include "wanda/system/logging.hpp" - -namespace wanda::system -{ - 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::system
\ No newline at end of file |
