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  public:
37  Logger(Logger const&) = delete;
38 
42  void operator=(Logger const&) = delete;
43 
48  static Logger& Instance()
49  {
50  static Logger instance;
51  return instance;
52  }
53 
58  static void SetDebug(bool debug);
59 
64  static void SetInfo(bool info);
65 
70  static bool IsDebugEnabled();
71 
76  static bool IsInfoEnabled();
77 
82  static void LogInfo(const std::string& message);
83 
88  static void LogError(const std::string& message);
89 
94  static void LogDebug(const std::string& message);
95  };
96 }
97 
98 
99 #endif //GBMOT_LOGGER_H
Definition: FileIO.cpp:8
static void LogDebug(const std::string &message)
Definition: Logger.cpp:28
static Logger & Instance()
Definition: Logger.h:48
static bool IsDebugEnabled()
Definition: Logger.cpp:46
static void LogInfo(const std::string &message)
Definition: Logger.cpp:15
Definition: Logger.h:16
static bool IsInfoEnabled()
Definition: Logger.cpp:51
static void SetDebug(bool debug)
Definition: Logger.cpp:36
static void LogError(const std::string &message)
Definition: Logger.cpp:23
void operator=(Logger const &)=delete
static void SetInfo(bool info)
Definition: Logger.cpp:41