aboutsummaryrefslogtreecommitdiff
path: root/src/logging.hpp
diff options
context:
space:
mode:
authorFelix Morgner <felix.morgner@gmail.com>2018-12-10 09:25:14 +0100
committerFelix Morgner <felix.morgner@gmail.com>2018-12-10 09:25:14 +0100
commitd3e691c9200b7b782c8acf17468068a699588a73 (patch)
tree44f179ebf773dc8536b220f2ffcc3d2eec374aa4 /src/logging.hpp
parent7b940a39dfef6f19846fe357d4a5167c66c79e85 (diff)
downloadwanda-d3e691c9200b7b782c8acf17468068a699588a73.tar.xz
wanda-d3e691c9200b7b782c8acf17468068a699588a73.zip
doc: update documentation
Diffstat (limited to 'src/logging.hpp')
-rw-r--r--src/logging.hpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/logging.hpp b/src/logging.hpp
index 46432b8..b3c1665 100644
--- a/src/logging.hpp
+++ b/src/logging.hpp
@@ -1,3 +1,9 @@
+/**
+ * @file logging.hpp
+ * @author Felix Morgner (felix.morgner@gmail.com)
+ * @since 1.0.0
+ */
+
#ifndef WANDA_LOGGING_HPP
#define WANDA_LOGGING_HPP
@@ -8,10 +14,21 @@
namespace wanda
{
+ /**
+ * @brief A covenience alias to represent a handle for a logger
+ */
using logger_ptr = std::shared_ptr<spdlog::logger>;
+ /**
+ * @brief Initialize the shared logger
+ *
+ * @note The logger will only ever be initialized once, even if this function is called multiple times
+ */
void initialize_logger(spdlog::sink_ptr sink = std::make_shared<spdlog::sinks::null_sink_st>());
+ /**
+ * @brief Get the shared logger
+ */
logger_ptr get_logger();
} // namespace wanda