MeshLib Documentation
Loading...
Searching...
No Matches
MR::LoggingStreambuf Class Reference

A custom streambuf that outputs things directly to the default spdlog logger. More...

#include <MRRestoringStreamsSink.h>

+ Inheritance diagram for MR::LoggingStreambuf:

Public Member Functions

MRMESH_API LoggingStreambuf (spdlog::level::level_enum level)
 

Protected Member Functions

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
 

Detailed Description

A custom streambuf that outputs things directly to the default spdlog logger.

Constructor & Destructor Documentation

◆ LoggingStreambuf()

MRMESH_API MR::LoggingStreambuf::LoggingStreambuf ( spdlog::level::level_enum level)
explicit

Member Function Documentation

◆ overflow()

MRMESH_API int_type MR::LoggingStreambuf::overflow ( int_type ch = traits_type::eof())
overrideprotected

◆ xsputn()

MRMESH_API std::streamsize MR::LoggingStreambuf::xsputn ( const char_type * s,
std::streamsize count )
overrideprotected

The documentation for this class was generated from the following file: