4#include "MRPch/MRSpdlog.h"
22 MRMESH_API std::streamsize
xsputn(
const char_type* s, std::streamsize count )
override;
27 spdlog::level::level_enum level_;
41 virtual void sink_it_(
const spdlog::details::log_msg& )
override { }
42 virtual void flush_()
override { }
44 std::streambuf* coutBuf_;
45 std::streambuf* cerrBuf_;
46 std::streambuf* clogBuf_;
48 LoggingStreambuf spdCoutBuf_;
49 LoggingStreambuf spdCerrBuf_;
50 LoggingStreambuf spdClogBuf_;
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
A custom streambuf that outputs things directly to the default spdlog logger.
Definition MRRestoringStreamsSink.h:17
MRMESH_API std::streamsize xsputn(const char_type *s, std::streamsize count) override
MRMESH_API int_type overflow(int_type ch=traits_type::eof()) override
MRMESH_API LoggingStreambuf(spdlog::level::level_enum level)
Definition MRRestoringStreamsSink.h:35
MRMESH_API ~RestoringStreamsSink()
MRMESH_API RestoringStreamsSink()
MRMESH_API void redirectSTDStreamsToLogger()
Definition MRCameraOrientationPlugin.h:8