Epee Engine  0.40
The Epee Engine is an open source cross platform graphics engine
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EELog.h
Go to the documentation of this file.
1 //
2 // EELog.h
3 // Example
4 //
5 // Created by Alan Uthoff on 5/19/12.
6 // Copyright (c) 2012. All rights reserved.
7 //
8 
9 #ifndef Example_EELog_h
10 #define Example_EELog_h
11 #include "EEStream.h"
12 #include <ostream>
13 #include <sstream>
14 
15 //TODO add NULL stream for disabling a level
17 {
23 };
24 
25 #define EE_INFO EELog::GetInstance()->GetLogLevel(EE_LEVEL_INFO)
26 #define EE_WARNING EELog::GetInstance()->GetLogLevel(EE_LEVEL_WARNING)
27 #define EE_ERROR EELog::GetInstance()->GetLogLevel(EE_LEVEL_ERROR)
28 #define EE_DEBUG EELog::GetInstance()->GetLogLevel(EE_LEVEL_DEBUG)
29 
30 class EELog
31 {
32 
33 public:
34  static EELog * GetInstance();
35  static void Destroy();
37 
38 protected:
40 private:
41  static EELog * EELogInstance;
42  EELog(){};
43  ~EELog(){};
44  EELog(const EELog &){};
45  EELog & operator = (const EELog &)
46  {
47  return *this;
48  }
49  void Init();
50  void TearDown();
51  void PrependLevelInformation(EELogLevels _Level);
52 
53 };
54 
55 #endif
Definition: EELog.h:18
static EELog * GetInstance()
Definition: EELog.cpp:41
Definition: EELog.h:30
EEStream * m_StreamLevels[EE_LEVEL_LAST]
Definition: EELog.h:39
Definition: EELog.h:20
Definition: EELog.h:19
EEStream & GetLogLevel(EELogLevels _Level)
Definition: EELog.cpp:109
EELogLevels
Definition: EELog.h:16
Definition: EELog.h:22
static void Destroy()
Definition: EELog.cpp:73
Definition: EEStream.h:40
Definition: EELog.h:21