![]() |
OGRE 14.3
Object-Oriented Graphics Rendering Engine
|
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. | |
void | destroyLog (const String &name) |
Closes and removes a named log. | |
void | destroyLog (Log *log) |
Closes and removes a log. | |
Log * | getDefaultLog () |
Returns a pointer to the default log. | |
Log * | getLog (const String &name) |
Retrieves a log managed by this class. | |
void | logError (const String &message, bool maskDebug=false) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
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 | logWarning (const String &message, bool maskDebug=false) |
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts. | |
Log * | setDefaultLog (Log *newLog) |
Sets the passed in log as the default log. | |
void | setLogDetail (LoggingLevel ll) |
void | setMinLogLevel (LogMessageLevel lml) |
sets the minimal LogMessageLevel for the default log | |
Log::Stream | stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Get a stream on the default log. | |
![]() | |
Singleton (void) | |
~Singleton (void) | |
Static Public Member Functions | |
static LogManager & | getSingleton (void) |
Get the singleton instance. | |
static LogManager * | getSingletonPtr (void) |
Get the singleton instance. | |
![]() | |
static LogManager & | getSingleton (void) |
Get the singleton instance. | |
static LogManager * | getSingletonPtr (void) |
Get the singleton instance. | |
The log manager handles the creation and retrieval of logs for the application.
This class will create new log files and will retrieve instances of existing ones. Other classes wishing to log output can either create a fresh log or retrieve an existing one to output to. One log is the default log, and is the one written to when the logging methods of this class are called.
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.
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.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.
|
inline |
Log a message to the default log (signature for backward compatibility).
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 | ) |
void Ogre::LogManager::setMinLogLevel | ( | LogMessageLevel | lml | ) |
sets the minimal LogMessageLevel for the default log
|
static |
Get the singleton instance.
|
static |
Get the singleton instance.