Subversion Repositories HomeAutomation

Rev

Rev 1309 | Rev 1314 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | SVN | RSS feed

  1. /*
  2.  * Logger.h
  3.  *
  4.  *  Created on: Jul 18, 2009
  5.  *      Author: Mattias Runge
  6.  */
  7.  
  8. #ifndef LOGGER_H_
  9. #define LOGGER_H_
  10.  
  11. #include <string>
  12. #include <iostream>
  13. #include "utils/Utils.h"
  14.  
  15. namespace atom {
  16. namespace utils {
  17.  
  18. using namespace std;
  19.  
  20. class Logger
  21. {
  22. public:
  23.     Logger();
  24.     virtual ~Logger();
  25.  
  26.     void setName(string className);
  27.  
  28.     void info(string message);
  29.     void debug(string message);
  30.     void warn(string message);
  31.     void error(string message);
  32.     void fatal(string message);
  33.  
  34. private:
  35.     string myClassName;
  36. };
  37.  
  38. }
  39. }
  40.  
  41. #endif /* LOGGER_H_ */
  42.