#include <logger.hpp>
Inheritance diagram for LoggerInterface:
Public Member Functions | |
virtual | ~LoggerInterface () |
virtual void | log (std::string const &msg, LoggerLevel msg_level=EVERYTHING) const =0 |
Write a log message to a Logger. | |
virtual void | error (std::string const &msg) const =0 |
Write an error to a Logger for immediate output. |
virtual ~LoggerInterface | ( | ) | [virtual] |
virtual void log | ( | std::string const & | msg, | |
LoggerLevel | msg_level = EVERYTHING | |||
) | const [pure virtual] |
Write a log message to a Logger.
A message passed to log may be cached or filtered as necessary. If immediate output is desired, use the error() method.
Implemented in CachedLogger, FilterLogger, and SimpleLogger.
virtual void error | ( | std::string const & | msg | ) | const [pure virtual] |
Write an error to a Logger for immediate output.
A message passed to this method will be bypass all filtering/caching mechanisms. Use judiciously.
Implemented in CachedLogger, FilterLogger, and SimpleLogger.