10 enum Level { Error, Warning, Info, Debug };
12 ALogger(void) { level = Error; }
13 virtual ~ALogger() { }
14 void debug(const std::string& msg) { if (level >= Debug) message(Debug, msg); }
15 void info(const std::string& msg) { if (level >= Info) message(Info, msg); }
16 void warning(const std::string& msg) { if (level >= Warning) message(Warning, msg); }
17 void error(const std::string& msg) { if (level >= Error) message(Error, msg); }
19 Level verbosity(void) const { return level; }
20 void verbosity(Level lvl) { level = lvl; }
23 virtual void message(Level, const std::string&) = 0;
29 #endif // __ALogger_hh__