Go to the documentation of this file.
37 #if OGRE_PLATFORM == OGRE_PLATFORM_NACL
53 #define OGRE_LOG_THRESHOLD 4
124 Log(
const String& name,
bool debugOutput =
true,
bool suppressFileOutput =
false);
216 :mTarget(target), mLevel(lml), mMaskDebug(maskDebug)
222 : mTarget(rhs.mTarget), mLevel(rhs.mLevel), mMaskDebug(rhs.mMaskDebug)
225 mCache.str(rhs.
mCache.str());
230 if (mCache.tellp() > 0)
232 mTarget->
logMessage(mCache.str(), mLevel, mMaskDebug);
236 template <
typename T>
246 mTarget->
logMessage(mCache.str(), mLevel, mMaskDebug);
253 #if OGRE_PLATFORM == OGRE_PLATFORM_NACL
255 static pp::Instance* mInstance;
257 static void setInstance(pp::Instance* instance) {mInstance = instance;};
const String & getName() const
Return the name of the log.
void addListener(LogListener *listener)
bool isDebugOutputEnabled() const
Get whether debug output is enabled for this log.
void removeListener(LogListener *listener)
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
StringUtil::StrStreamType BaseStream
void setLogDetail(LoggingLevel ll)
LogMessageLevel
The importance of a logged message.
Stream(Log *target, LogMessageLevel lml, bool maskDebug)
vector< LogListener * >::type mtLogListener
LoggingLevel
The level of detail to which the log will go into.
StringStream StrStreamType
LoggingLevel getLogDetail() const
Gets the level of the log detail.
void setDebugOutputEnabled(bool debugOutput)
Simple type to indicate a flush of the stream to the log.
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>"),...
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
Log(const String &name, bool debugOutput=true, bool suppressFileOutput=false)
Stream stream(LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Get a stream object targeting this log.
bool isTimeStampEnabled() const
Get whether time stamps are printed for this log.
void setTimeStampEnabled(bool timeStamp)
virtual void messageLogged(const String &message, LogMessageLevel lml, bool maskDebug, const String &logName, bool &skipThisMessage)=0
Stream(const Stream &rhs)
Stream object which targets a log.
bool isFileOutputSuppressed() const
Get whether file output is suppressed for this log.
Copyright © 2012 Torus Knot Software Ltd

This work is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.