1 #ifndef ABLATELIBRARY_NULLLOG_HPP
2 #define ABLATELIBRARY_NULLLOG_HPP
9 namespace ablate::monitors::logs {
15 class NullBuffer :
public std::streambuf {
17 int_type overflow(int_type c)
override {
return c; }
20 inline static NullBuffer nullBuffer;
26 inline static std::ostream
nullStream = std::ostream(&nullBuffer);
31 void Print(
const char*)
override {}
32 void Printf(
const char*, ...)
override {}
33 void Initialize(MPI_Comm comm)
override {}
Definition: nullLog.hpp:10
static std::ostream nullStream
Definition: nullLog.hpp:26
std::ostream & GetStream() override
Definition: nullLog.hpp:39