#include <OgreLogManager.h>
Public Member Functions | |
OGRE_AUTO_MUTEX | LogManager () |
~LogManager () | |
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 * | getDefaultLog () |
Returns a pointer to the default log. | |
void | destroyLog (const String &name) |
Closes and removes a named log. | |
void | destroyLog (Log *log) |
Closes and removes a log. | |
Log * | setDefaultLog (Log *newLog) |
Sets the passed in log as the default log. | |
void | logMessage (const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Log a message to 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::Stream | stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Get a stream on the default log. | |
void | setLogDetail (LoggingLevel ll) |
Sets the level of detail of the default log. | |
void * | operator new (size_t sz, const char *file, int line, const char *func) |
operator new, with debug line info | |
void * | operator new (size_t sz) |
void * | operator new (size_t sz, void *ptr) |
placement operator new | |
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
array operator new, with debug line info | |
void * | operator new[] (size_t sz) |
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 *) |
Static Public Member Functions | |
static LogManager & | getSingleton (void) |
Override standard Singleton retrieval. | |
static LogManager * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
typedef std::map< String, Log *, std::less< String > > | LogList |
Protected Attributes | |
LogList | mLogs |
A list of all the logs the manager can access. | |
Log * | mDefaultLog |
The default log to which output is done. | |
Static Protected Attributes | |
static T * | ms_Singleton |
Definition at line 59 of file OgreLogManager.h.
typedef std::map<String, Log*, std::less<String> > Ogre::LogManager::LogList [protected] |
Definition at line 62 of file OgreLogManager.h.
OGRE_AUTO_MUTEX 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. |
Log* Ogre::LogManager::getDefaultLog | ( | ) |
Returns a pointer to the default log.
void Ogre::LogManager::destroyLog | ( | const String & | name | ) |
Closes and removes a named log.
void Ogre::LogManager::destroyLog | ( | Log * | log | ) |
Closes and removes a log.
Sets the passed in log as the default log.
void Ogre::LogManager::logMessage | ( | const String & | message, | |
LogMessageLevel | lml = LML_NORMAL , |
|||
bool | maskDebug = false | |||
) |
Log a message to the default log.
void Ogre::LogManager::logMessage | ( | LogMessageLevel | lml, | |
const String & | message, | |||
bool | maskDebug = false | |||
) |
Log a message to the default log (signature for backward compatibility).
Definition at line 120 of file OgreLogManager.h.
Log::Stream Ogre::LogManager::stream | ( | LogMessageLevel | lml = LML_NORMAL , |
|
bool | maskDebug = false | |||
) |
Get a stream on the default log.
void Ogre::LogManager::setLogDetail | ( | LoggingLevel | ll | ) |
Sets the level of detail of the default log.
static LogManager& Ogre::LogManager::getSingleton | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< T >.
static LogManager* Ogre::LogManager::getSingletonPtr | ( | void | ) | [static] |
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< T >.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz | ) | [inherited] |
Definition at line 67 of file OgreMemoryAllocatedObject.h.
void* Ogre::AllocatedObject< Alloc >::operator new | ( | size_t | sz, | |
void * | ptr | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz, | |
const char * | file, | |||
int | line, | |||
const char * | func | |||
) | [inherited] |
void* Ogre::AllocatedObject< Alloc >::operator new[] | ( | size_t | sz | ) | [inherited] |
Definition at line 84 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr | ) | [inherited] |
Definition at line 89 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
void * | ||||
) | [inherited] |
Definition at line 95 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 101 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr | ) | [inherited] |
Definition at line 106 of file OgreMemoryAllocatedObject.h.
void Ogre::AllocatedObject< Alloc >::operator delete[] | ( | void * | ptr, | |
const char * | , | |||
int | , | |||
const char * | ||||
) | [inherited] |
Definition at line 112 of file OgreMemoryAllocatedObject.h.
LogList Ogre::LogManager::mLogs [protected] |
Log* Ogre::LogManager::mDefaultLog [protected] |
T* Ogre::Singleton< T >::ms_Singleton [static, protected, inherited] |
Copyright © 2008 Torus Knot Software Ltd
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 27 22:03:56 2009