aboutsummaryrefslogtreecommitdiff
path: root/src/logging.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-08 11:54:28 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-08 11:54:28 +0100
commit7b940a39dfef6f19846fe357d4a5167c66c79e85 (patch)
treee83fef50b0125ff8034305d71821d6857522d60a /src/logging.hpp
parent0c1d1a0f24655c22a373c19aac90a6a225a353e6 (diff)
downloadwanda-7b940a39dfef6f19846fe357d4a5167c66c79e85.tar.xz
wanda-7b940a39dfef6f19846fe357d4a5167c66c79e85.zip
wanda: extract logging
Diffstat (limited to 'src/logging.hpp')
-rw-r--r--src/logging.hpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/logging.hpp b/src/logging.hpp
new file mode 100644
index 0000000..46432b8
--- /dev/null
+++ b/src/logging.hpp
@@ -0,0 +1,18 @@
+#ifndef WANDA_LOGGING_HPP
+#define WANDA_LOGGING_HPP
+
+#include <spdlog/sinks/null_sink.h>
+#include <spdlog/spdlog.h>
+
+#include <memory>
+
+namespace wanda
+{
+ using logger_ptr = std::shared_ptr<spdlog::logger>;
+
+ void initialize_logger(spdlog::sink_ptr sink = std::make_shared<spdlog::sinks::null_sink_st>());
+
+ logger_ptr get_logger();
+} // namespace wanda
+
+#endif \ No newline at end of file