OGRE
13.6
Object-Oriented Graphics Rendering Engine
|
Log class for writing debug/log data to files. More...
#include <OgreLog.h>
Classes | |
class | Stream |
Stream object which targets a log. More... | |
Public Member Functions | |
Log (const String &name, bool debugOutput=true, bool suppressFileOutput=false) | |
~Log () | |
void | addListener (LogListener *listener) |
LogMessageLevel | getMinLogLevel () const |
Gets the level of the log detail. More... | |
const String & | getName () const |
Return the name of the log. More... | |
bool | isDebugOutputEnabled () const |
Get whether debug output is enabled for this log. More... | |
bool | isFileOutputSuppressed () const |
Get whether file output is suppressed for this log. More... | |
bool | isTimeStampEnabled () const |
Get whether time stamps are printed for this log. More... | |
void | logMessage (const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Log a message to the debugger and to log file (the default is "<code>OGRE.log</code>"),. More... | |
void | removeListener (LogListener *listener) |
void | setDebugOutputEnabled (bool debugOutput) |
void | setLogDetail (LoggingLevel ll) |
void | setMinLogLevel (LogMessageLevel lml) |
set the minimal LogMessageLevel for a message to be logged More... | |
void | setTimeStampEnabled (bool timeStamp) |
Stream | stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
Get a stream object targeting this log. More... | |
Log class for writing debug/log data to files.
You can control the default log level through the OGRE_MIN_LOGLEVEL
environment variable. Here, the value 1 corresponds to LML_TRIVIAL etc.
Ogre::Log::Log | ( | const String & | name, |
bool | debugOutput = true , |
||
bool | suppressFileOutput = false |
||
) |
Ogre::Log::~Log | ( | ) |
|
inline |
Return the name of the log.
|
inline |
Get whether debug output is enabled for this log.
|
inline |
Get whether file output is suppressed for this log.
|
inline |
Get whether time stamps are printed for this log.
void Ogre::Log::logMessage | ( | const String & | message, |
LogMessageLevel | lml = LML_NORMAL , |
||
bool | maskDebug = false |
||
) |
Log a message to the debugger and to log file (the default is "<code>OGRE.log</code>"),.
Referenced by Ogre::Log::Stream::~Stream(), and Ogre::Log::Stream::operator<<().
Stream Ogre::Log::stream | ( | LogMessageLevel | lml = LML_NORMAL , |
bool | maskDebug = false |
||
) |
Get a stream object targeting this log.
void Ogre::Log::setDebugOutputEnabled | ( | bool | debugOutput | ) |
void Ogre::Log::setLogDetail | ( | LoggingLevel | ll | ) |
void Ogre::Log::setMinLogLevel | ( | LogMessageLevel | lml | ) |
set the minimal LogMessageLevel for a message to be logged
void Ogre::Log::setTimeStampEnabled | ( | bool | timeStamp | ) |
|
inline |
Gets the level of the log detail.
void Ogre::Log::addListener | ( | LogListener * | listener | ) |
listener | A valid listener derived class |
void Ogre::Log::removeListener | ( | LogListener * | listener | ) |
listener | A valid listener derived class |