4#include "MRPch/MRSpdlog.h"
5#include "MRPch/MRBindingMacros.h"
34 std::shared_ptr<spdlog::logger> logger_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
Make default spd logger.
Definition MRLog.h:16
MRMESH_API void addSink(const spdlog::sink_ptr &sink)
adds custom sink to logger
MRMESH_API std::filesystem::path getLogFileName() const
return filename of first found file sink, if there is no one, returns {}
MRMESH_API void removeSink(const spdlog::sink_ptr &sink)
static MRMESH_API Logger & instance()
MRMESH_API const std::shared_ptr< spdlog::logger > & getSpdLogger() const
store this pointer if need to prolong logger life time (necessary to log something from destructors)
MRMESH_API std::string getDefaultPattern() const
returns default logger pattern
Definition MRCameraOrientationPlugin.h:8