mtx::utils::log namespace

Logger utilities.

Functions

auto log() -> std::shared_ptr<spdlog::logger>
Access the logger and modify it.

Function documentation

std::shared_ptr<spdlog::logger> mtx::utils::log::log()

Access the logger and modify it.

For example you can set the sinks using mtx::utils::log::log()->sinks() = sinks or modify the loglevel using mtx::utils::log::log()->set_level(spdlog::level::trace).