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>
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;
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:82
Definition: Singleton.h:86
@ Insane
Mostly everything gets logged (use for heavy tracing only, log WILL be big).
Definition: Logger.h:114
@ Informative
Useful tracing (object creations etc) information will be logged.
Definition: Logger.h:113
@ Warnings
Warnings will be logged as well.
Definition: Logger.h:111
Main namespace for Crazy Eddie's GUI Library.
Definition: arch_overview.dox:1
Abstract class that defines the interface of a logger object for the GUI system. The default implemen...
Definition: Logger.h:98
@ Standard
Basic events will be logged (default level).
Definition: Logger.h:112
String class used within the GUI system.
Definition: String.h:88
@ Errors
Only actual error conditions will be logged.
Definition: Logger.h:110