KASKADE 7 development version
|
Simple logging facility. More...
#include <logging.hh>
Simple logging facility.
Definition at line 27 of file logging.hh.
Public Member Functions | |
Logger (int level, std::ostream &out=std::cout) | |
Constructor. More... | |
~Logger () | |
bool | operator() (int level, std::string const &message) |
log a message with given level More... | |
std::ostream & | operator() (int level) |
Provides access to the log output stream used for messages of the given level. More... | |
Kaskade::Logger::Logger | ( | int | level, |
std::ostream & | out = std::cout |
||
) |
Constructor.
level | all log messages with a level greater than the provided level are discarded |
out | the output stream to which the log messages are sent. The stream has to exist during the lifetime of the logger (a reference is kept internally). |
Kaskade::Logger::~Logger | ( | ) |
std::ostream & Kaskade::Logger::operator() | ( | int | level | ) |
Provides access to the log output stream used for messages of the given level.
bool Kaskade::Logger::operator() | ( | int | level, |
std::string const & | message | ||
) |
log a message with given level