29#ifndef __LogManager_H__
30#define __LogManager_H__
99 bool suppressFileOutput =
false);
122 bool maskDebug =
false);
127 bool maskDebug =
false) { logMessage(message, lml, maskDebug); }
131 bool maskDebug =
false);
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
The log manager handles the creation and retrieval of logs for the application.
void logMessage(const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Log a message to the default log.
void destroyLog(const String &name)
Closes and removes a named log.
map< String, Log * >::type LogList
static LogManager * getSingletonPtr(void)
Override standard Singleton retrieval.
static LogManager & getSingleton(void)
Override standard Singleton retrieval.
LogList mLogs
A list of all the logs the manager can access.
void setLogDetail(LoggingLevel ll)
Sets the level of detail of the default log.
void logMessage(LogMessageLevel lml, const String &message, bool maskDebug=false)
Log a message to the default log (signature for backward compatibility).
Log * mDefaultLog
The default log to which output is done.
Log::Stream stream(LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Get a stream on the default log.
Log * createLog(const String &name, bool defaultLog=false, bool debuggerOutput=true, bool suppressFileOutput=false)
Creates a new log with the given name.
Log * getLog(const String &name)
Retrieves a log managed by this class.
Log * setDefaultLog(Log *newLog)
Sets the passed in log as the default log.
Log * getDefaultLog()
Returns a pointer to the default log.
void destroyLog(Log *log)
Closes and removes a log.
Stream object which targets a log.
Template class for creating single-instance global classes.
LoggingLevel
The level of detail to which the log will go into.
LogMessageLevel
The importance of a logged message.
std::map< K, V, P, A > type