42 Logger(MPI_Comm com,
int threshold);
50 void message(
int threshold,
const std::string &text)
const;
75 virtual void error_impl(
const char buffer[])
const;
91 std::string
get()
const;
94 virtual void error_impl(
const char buffer[])
const;
void disable() const
Silence the logger.
void void set_threshold(int level)
Set verbosity threshold.
void message(int threshold, const char format[],...) const __attribute__((format(printf
Print a message to the log.
Logger & operator=(const Logger &)
virtual void error_impl(const char buffer[]) const
virtual void message_impl(const char buffer[]) const
Do the hard work. Override this in a derived class to customize.
void error(const char format[],...) const __attribute__((format(printf
Print an error message to the log.
int get_threshold() const
Get verbosity threshold.
void enable() const
(Re-)enable the logger.
virtual void error_impl(const char buffer[]) const
virtual void message_impl(const char buffer[]) const
Do the hard work. Override this in a derived class to customize.
A logger that accumulates messages and reports them as a string.
std::string printf(const char *format,...)