Make default spd logger.
More...
#include <MRLog.h>
◆ addSink()
MRMESH_API void MR::Logger::addSink |
( |
const spdlog::sink_ptr & | sink | ) |
|
adds custom sink to logger
◆ getDefaultPattern()
MRMESH_API std::string MR::Logger::getDefaultPattern |
( |
| ) |
const |
returns default logger pattern
◆ getLogFileName()
MRMESH_API std::filesystem::path MR::Logger::getLogFileName |
( |
| ) |
const |
return filename of first found file sink, if there is no one, returns {}
◆ getSpdLogger()
MRMESH_API const std::shared_ptr< spdlog::logger > & MR::Logger::getSpdLogger |
( |
| ) |
const |
store this pointer if need to prolong logger life time (necessary to log something from destructors)
◆ instance()
◆ removeSink()
MRMESH_API void MR::Logger::removeSink |
( |
const spdlog::sink_ptr & | sink | ) |
|
The documentation for this class was generated from the following file: