#include <OgreLogManager.h>
Inheritance diagram for Ogre::LogManager:
Public Member Functions | |
LogManager () | |
~LogManager () | |
void | addListener (LogListener *listener) |
Adds a new listener for the logging system. | |
void | removeListener (LogListener *listener) |
Removes a previously registered listener again, and returns ownership of the listener to the caller, who is responsible for destroying the listener again. | |
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. | |
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). | |
void | setLogDetail (LoggingLevel ll) |
Sets the level of detail of the default log. | |
Static Public Member Functions | |
LogManager & | getSingleton (void) |
Override standard Singleton retrieval. | |
LogManager * | getSingletonPtr (void) |
Override standard Singleton retrieval. | |
Protected Types | |
typedef std::map< String, Log *, std::less< String > > | LogList |
typedef std::vector< LogListener * > | LogListenerList |
Protected Member Functions | |
void | _routeMessage (const String &name, const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Internal helper method to reroute logging messages to the new listener system, while maintaining full backward compatiblity. | |
Protected Attributes | |
LogList | mLogs |
A list of all the logs the manager can access. | |
Log * | mDefaultLog |
The default log to which output is done. | |
LogListenerList | mListeners |
A list of all registered external log listeners. | |
Static Protected Attributes | |
LogManager * | ms_Singleton |
Friends | |
class | Log |
Definition at line 71 of file OgreLogManager.h.
|
Definition at line 85 of file OgreLogManager.h. |
|
Definition at line 86 of file OgreLogManager.h. |
|
|
|
|
|
Internal helper method to reroute logging messages to the new listener system, while maintaining full backward compatiblity.
|
|
Adds a new listener for the logging system. Ogre does not assume ownership and does not destroy the listener at application shutdown. |
|
Creates a new log with the given name.
|
|
Returns a pointer to the default log.
|
|
Retrieves a log managed by this class.
|
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< LogManager >. |
|
Override standard Singleton retrieval.
Reimplemented from Ogre::Singleton< LogManager >. |
|
Log a message to the default log (signature for backward compatibility).
Definition at line 152 of file OgreLogManager.h. References Ogre::String. |
|
Log a message to the default log.
|
|
Removes a previously registered listener again, and returns ownership of the listener to the caller, who is responsible for destroying the listener again.
|
|
Sets the passed in log as the default log.
|
|
Sets the level of detail of the default log.
|
|
Definition at line 73 of file OgreLogManager.h. |
|
The default log to which output is done.
Definition at line 92 of file OgreLogManager.h. |
|
A list of all registered external log listeners.
Definition at line 95 of file OgreLogManager.h. |
|
A list of all the logs the manager can access.
Definition at line 89 of file OgreLogManager.h. |
|
Definition at line 54 of file OgreSingleton.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Mar 12 14:39:35 2006