diff options
| author | Felix Morgner <felix.morgner@gmail.com> | 2022-09-16 23:28:09 +0200 |
|---|---|---|
| committer | Felix Morgner <felix.morgner@gmail.com> | 2022-09-16 23:28:09 +0200 |
| commit | f4d9880d3c9555b48affad727589ef5c093b1841 (patch) | |
| tree | a5552b5a33000a527748ac1c72ca366476af0936 /source/src/wanda/logging.cpp | |
| parent | 64922e213ac731279cf3341253e67509adb2dfc8 (diff) | |
| download | wanda-f4d9880d3c9555b48affad727589ef5c093b1841.tar.xz wanda-f4d9880d3c9555b48affad727589ef5c093b1841.zip | |
source: clean up structure
Diffstat (limited to 'source/src/wanda/logging.cpp')
| -rw-r--r-- | source/src/wanda/logging.cpp | 21 |
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 |
