13#ifndef MINOTAURLOGGER_H
14#define MINOTAURLOGGER_H
69 class nullbuf :
public std::streambuf {
72 virtual int_type overflow(int_type c) {
return c; }
78 mutable std::ostream nout_;
81 typedef const Logger* ConstLoggerPtr;
Declare important 'types' used in Minotaur.
LogLevel getMaxLevel() const
Get the maxLevel.
Definition: Logger.h:49
Logger(LogLevel max_level=LogInfo)
Default constructor.
Definition: Logger.cpp:14
virtual std::ostream & msgStream(LogLevel level) const
Get the stream where one can write messages.
Definition: Logger.cpp:27
void setMaxLevel(LogLevel maxLevel)
Do not write messages that are above maxLevel.
Definition: Logger.h:46
virtual ~Logger()
Destroy.
Definition: Logger.cpp:21
std::ostream & errStream() const
Get the stream where one can write errors.
Definition: Logger.cpp:36
Definition: ActiveNodeStore.h:20
LogLevel
Levels of verbosity.
Definition: Types.h:226