The log manager handles the creation and retrieval of logs for the application. More...
#include <OgreLogManager.h>
Public Member Functions | |
LogManager () | |
~LogManager () | |
Log * | createLog (const String &name, bool defaultLog=false, bool debuggerOutput=true, bool suppressFileOutput=false) |
Creates a new log with the given name. More... | |
void | destroyLog (const String &name) |
Closes and removes a named log. More... | |
void | destroyLog (Log *log) |
Closes and removes a log. More... | |
Log * | getDefaultLog () |
Returns a pointer to the default log. More... | |
Log * | getLog (const String &name) |
Retrieves a log managed by this class. More... | |
void | logMessage (const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Log a message to the default log. More... | |
void | logMessage (LogMessageLevel lml, const String &message, bool maskDebug=false) |
Log a message to the default log (signature for backward compatibility). More... | |
void | operator delete (void *ptr) |
void | operator delete (void *ptr, void *) |
void | operator delete (void *ptr, const char *, int, const char *) |
void | operator delete[] (void *ptr) |
void | operator delete[] (void *ptr, const char *, int, const char *) |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info More... | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new More... | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info More... | |
void * | operator new[] (size_t sz) |
Log * | setDefaultLog (Log *newLog) |
Sets the passed in log as the default log. More... | |
void | setLogDetail (LoggingLevel ll) |
Sets the level of detail of the default log. More... | |
Log::Stream | stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Get a stream on the default log. More... | |
Static Public Member Functions | |
static LogManager & | getSingleton (void) |
Override standard Singleton retrieval. More... | |
static LogManager * | getSingletonPtr (void) |
Override standard Singleton retrieval. More... | |
Public Attributes | |
OGRE_AUTO_MUTEX | |
Protected Types | |
typedef map< String, Log * >::type | LogList |
Protected Attributes | |
Log * | mDefaultLog |
The default log to which output is done. More... | |
LogList | mLogs |
A list of all the logs the manager can access. More... | |
Static Protected Attributes | |
static LogManager * | msSingleton |
The log manager handles the creation and retrieval of logs for the application.
Definition at line 65 of file OgreLogManager.h.
|
protected |
Definition at line 68 of file OgreLogManager.h.
Ogre::LogManager::LogManager | ( | ) |
Ogre::LogManager::~LogManager | ( | ) |
Log* Ogre::LogManager::createLog | ( | const String & | name, |
bool | defaultLog = false , |
||
bool | debuggerOutput = true , |
||
bool | suppressFileOutput = false |
||
) |
Creates a new log with the given name.
name | The name to give the log e.g. 'Ogre.log' |
defaultLog | If true, this is the default log output will be sent to if the generic logging methods on this class are used. The first log created is always the default log unless this parameter is set. |
debuggerOutput | If true, output to this log will also be routed to the debugger's output window. |
suppressFileOutput | If true, this is a logical rather than a physical log and no file output will be written. If you do this you should register a LogListener so log output is not lost. |
void Ogre::LogManager::destroyLog | ( | const String & | name | ) |
Closes and removes a named log.
void Ogre::LogManager::destroyLog | ( | Log * | log | ) |
Closes and removes a log.
Log* Ogre::LogManager::getDefaultLog | ( | ) |
Returns a pointer to the default log.
|
static |
Override standard Singleton retrieval.
Referenced by Ogre::ProgressiveMeshGenerator::addIndexDataImpl().
|
static |
Override standard Singleton retrieval.
void Ogre::LogManager::logMessage | ( | const String & | message, |
LogMessageLevel | lml = LML_NORMAL , |
||
bool | maskDebug = false |
||
) |
Log a message to the default log.
|
inline |
Log a message to the default log (signature for backward compatibility).
Definition at line 126 of file OgreLogManager.h.
|
inlineinherited |
Definition at line 96 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 102 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 108 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 113 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 119 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
operator new, with debug line info
Definition at line 68 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 73 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
placement operator new
Definition at line 79 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
array operator new, with debug line info
Definition at line 86 of file OgreMemoryAllocatedObject.h.
|
inlineinherited |
Definition at line 91 of file OgreMemoryAllocatedObject.h.
Sets the passed in log as the default log.
void Ogre::LogManager::setLogDetail | ( | LoggingLevel | ll | ) |
Sets the level of detail of the default log.
Log::Stream Ogre::LogManager::stream | ( | LogMessageLevel | lml = LML_NORMAL , |
bool | maskDebug = false |
||
) |
Get a stream on the default log.
Referenced by Ogre::ProgressiveMeshGenerator::addIndexDataImpl().
|
protected |
The default log to which output is done.
Definition at line 74 of file OgreLogManager.h.
|
protected |
A list of all the logs the manager can access.
Definition at line 71 of file OgreLogManager.h.
|
staticprotectedinherited |
Definition at line 75 of file OgreSingleton.h.
Ogre::LogManager::OGRE_AUTO_MUTEX |
Definition at line 77 of file OgreLogManager.h.