Go to the documentation of this file.
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...
LogMessageLevel
The importance of a logged message.
void destroyLog(Log *log)
Closes and removes a log.
LogList mLogs
A list of all the logs the manager can access.
static LogManager * getSingletonPtr(void)
Override standard Singleton retrieval.
LoggingLevel
The level of detail to which the log will go into.
Log * setDefaultLog(Log *newLog)
Sets the passed in log as the default log.
Log * mDefaultLog
The default log to which output is done.
void logMessage(LogMessageLevel lml, const String &message, bool maskDebug=false)
Log a message to the default log (signature for backward compatibility).
Log * getLog(const String &name)
Retrieves a log managed by this class.
Log * createLog(const String &name, bool defaultLog=false, bool debuggerOutput=true, bool suppressFileOutput=false)
Creates a new log with the given name.
void logMessage(const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Log a message to the default log.
Log * getDefaultLog()
Returns a pointer to the default log.
Template class for creating single-instance global classes.
map< String, Log * >::type LogList
void setLogDetail(LoggingLevel ll)
Sets the level of detail of the default log.
Log::Stream stream(LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Get a stream on the default log.
static LogManager & getSingleton(void)
Override standard Singleton retrieval.
Stream object which targets a log.
The log manager handles the creation and retrieval of logs for the application.
void destroyLog(const String &name)
Closes and removes a named log.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.