1 | #pragma once |
---|---|
2 | |
3 | /// @file |
4 | /// @brief Header for logging related functions |
5 | |
6 | #include <memory> |
7 | #include <spdlog/spdlog.h> |
8 | |
9 | namespace mtx { |
10 | namespace utils { |
11 | //! Logger utilities |
12 | namespace log { |
13 | /// @brief Access the logger and modify it. |
14 | /// |
15 | /// For example you can set the sinks using `mtx::utils::log::log()->sinks() = sinks` or modify the |
16 | /// loglevel using `mtx::utils::log::log()->set_level(spdlog::level::trace)`. |
17 | std::shared_ptr<spdlog::logger> |
18 | log(); |
19 | } |
20 | } |
21 | } |
22 |