Tracore
Logger.h
1 //
2 // Created by wrede on 12.05.16.
3 //
4 
5 #ifndef GBMOT_LOGGER_H
6 #define GBMOT_LOGGER_H
7 #include <string>
8 
9 namespace util
10 {
16  class Logger
17  {
18  private:
22  Logger();
23 
27  bool info_;
28 
32  bool debug_;
33 
38  void LogMessage(const std::string& message);
39  public:
43  Logger(Logger const&) = delete;
44 
48  void operator=(Logger const&) = delete;
49 
54  static Logger& Instance()
55  {
56  static Logger instance;
57  return instance;
58  }
59 
64  static void SetDebug(bool debug);
65 
70  static void SetInfo(bool info);
71 
76  static bool IsDebugEnabled();
77 
82  static bool IsInfoEnabled();
83 
88  static void LogInfo(const std::string& message);
89 
94  static void LogError(const std::string& message);
95 
100  static void LogDebug(const std::string& message);
101  };
102 }
103 
104 
105 #endif //GBMOT_LOGGER_H
Definition: FileIO.cpp:11
static void LogDebug(const std::string &message)
Definition: Logger.cpp:33
static Logger & Instance()
Definition: Logger.h:54
static bool IsDebugEnabled()
Definition: Logger.cpp:51
static void LogInfo(const std::string &message)
Definition: Logger.cpp:20
Definition: Logger.h:16
static bool IsInfoEnabled()
Definition: Logger.cpp:56
static void SetDebug(bool debug)
Definition: Logger.cpp:41
static void LogError(const std::string &message)
Definition: Logger.cpp:28
void operator=(Logger const &)=delete
static void SetInfo(bool info)
Definition: Logger.cpp:46