27 #ifndef COMMON_DEBUGMAN_H 28 #define COMMON_DEBUGMAN_H 116 void getDebugChannels(std::vector<UString> &names, std::vector<UString> &descriptions)
const;
181 typedef std::map<UString, DebugChannel, UString::iless>
ChannelMap;
195 #define DebugMan Common::DebugManager::instance() 197 #endif // COMMON_DEBUGMAN_H Class and macro for implementing singletons.
"GSound", global, non-engine sound.
Behavior that has been marked for deprecation.
"GGLAPI", OpenGL debug message generated by the GL.
static const uint32 kMaxVerbosityLevel
A class holding an UTF-8 string.
"GGLWindow", OpenGL debug message generated by the windowing system.
void logString(const UString &str)
Log that string to the current log file.
"GActionScript", actionscript interpreter
"GEvents", global, non-engine events.
uint32 glTypeIDs[kDebugGLTypeMAX]
Information about the last OpenGL message ID for this channel's types.
uint32 getVerbosityLevel(DebugChannel channel) const
Return the verbosity level of this channel (by ID).
bool isEnabled(DebugChannel channel, uint32 level) const
Is this channel ID enabled for this verbosity level?
"EScripts", engine scripts.
ChannelMap _channelMap
Debug channels indexed by name.
UString description
The channel's description.
void setConfigToVerbosityLevels()
Sync verbosity levels to the ConfigManager.
static UString getDefaultLogFile()
Return the OS-specific default path of the log file.
std::map< UString, DebugChannel, UString::iless > ChannelMap
void logDebugGL(DebugChannel channel, uint32 level, DebugGLType type, uint32 id, const char *msg)
Log (and print) an OpenGL debug message.
The debug manager, managing debug channels.
Generic template base class for implementing the singleton design pattern.
void closeLogFile()
Close the current log file.
"GVideo", global, non-engine video (movies).
Special value to refer to all debug channel.
void logCommandLine(const std::vector< UString > &argv)
Write the whole command line to the current log file.
"GGraphics", global, non-engine graphics.
"GGLApp", OpenGL debug message generated by the application.
DebugGLType
Types of OpenGL debug messages.
Events that generated an error.
void getDebugChannels(std::vector< UString > &names, std::vector< UString > &descriptions) const
Return the channel names alongside their descriptions.
"GScripts", global, non-engine scripts.
Low-level type definitions to handle fixed width types portably.
bool openLogFile(const UString &file)
Open a log file where all debug output will be written to.
Behavior that is undefined according to the specification.
"EEvents", engine events.
Total number of debug channels.
DebugChannel
All debug channels.
"GGLOther", OpenGL debug message generated by other sources.
uint32 level
The current level at which this debug channel is enabled.
Types of events that do not fit any of the ones listed above.
Implementing the stream writing interfaces for files.
Use of extensions or shaders in a way that is highly vendor-specific.
Channel _channels[kDebugChannelCount]
All debug channels.
void setVerbosityLevelsFromConfig()
Sync verbosity levels from the ConfigManager.
"EGraphics", engine graphics.
"GGL3rd", OpenGL debug message generated by third party middleware.
void setVerbosityLevel(DebugChannel channel, uint32 level)
Set the verbosity level of this channel (by ID).
A simple streaming file writing class.
"ELogic", engine game logic.
"GGLShader", OpenGL debug message generated by the shader compiler.
UString name
The channel's name.
Implementation-dependent performance warnings.