Crazy Eddie's GUI System
0.8.7
|
29 #ifndef _CEGUILogger_h_
30 #define _CEGUILogger_h_
32 #include "CEGUI/Base.h"
33 #include "CEGUI/String.h"
38 #include "CEGUI/Singleton.h"
42 # pragma warning(push)
43 # pragma warning(disable : 4275)
44 # pragma warning(disable : 4251)
72 class CEGUIEXPORT Logger :
73 public Singleton<Logger>,
74 public AllocatedObject<Logger>
86 virtual ~Logger(
void);
99 void setLoggingLevel(
LoggingLevel level) {d_level = level;}
109 LoggingLevel getLoggingLevel(
void)
const {
return d_level;}
144 virtual void setLogFilename(
const String& filename,
bool append =
false) = 0;
153 Logger(
const Logger&) : Singleton <Logger>() {}
154 Logger& operator=(
const Logger&) {
return *
this;}
162 #if defined(DEBUG) || defined (_DEBUG)
163 # define CEGUI_LOGINSANE( message ) CEGUI::Logger::getSingleton().logEvent((message), CEGUI::Insane);
165 # define CEGUI_LOGINSANE( message ) (void)0
170 #if defined(_MSC_VER)
171 # pragma warning(pop)
174 #endif // end of guard _CEGUILogger_h_
LoggingLevel
Enumeration of logging levels.
Definition: Logger.h:78
Mostly everything gets logged (use for heavy tracing only, log WILL be big).
Definition: Logger.h:108
Useful tracing (object creations etc) information will be logged.
Definition: Logger.h:107
Warnings will be logged as well.
Definition: Logger.h:105
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Basic events will be logged (default level).
Definition: Logger.h:106
Only actual error conditions will be logged.
Definition: Logger.h:104