36 #if OGRE_PLATFORM == OGRE_PLATFORM_NACL
52 #define OGRE_LOG_THRESHOLD 4
123 Log(
const String& name,
bool debugOutput =
true,
bool suppressFileOutput =
false);
152 void setDebugOutputEnabled(
bool debugOutput);
162 void setTimeStampEnabled(
bool timeStamp);
215 :mTarget(target), mLevel(lml), mMaskDebug(maskDebug)
221 : mTarget(rhs.mTarget), mLevel(rhs.mLevel), mMaskDebug(rhs.mMaskDebug)
224 mCache.str(rhs.
mCache.str());
229 if (mCache.tellp() > 0)
231 mTarget->logMessage(mCache.str(), mLevel, mMaskDebug);
235 template <
typename T>
245 mTarget->logMessage(mCache.str(), mLevel, mMaskDebug);
252 #if OGRE_PLATFORM == OGRE_PLATFORM_NACL
254 static pp::Instance* mInstance;
256 static void setInstance(pp::Instance* instance) {mInstance = instance;};
Stream(const Stream &rhs)
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.
Stream object which targets a log.
StringUtil::StrStreamType BaseStream
Simple type to indicate a flush of the stream to the log.
bool isFileOutputSuppressed() const
Get whether file output is suppressed for this log.
bool isTimeStampEnabled() const
Get whether time stamps are printed for this log.
LogMessageLevel
The importance of a logged message.
Superclass for all objects that wish to use custom memory allocators when their new / delete operator...
const String & getName() const
Return the name of the log.
virtual void messageLogged(const String &message, LogMessageLevel lml, bool maskDebug, const String &logName, bool &skipThisMessage)=0
std::ostream & operator<<(std::ostream &o, const TRect< T > &r)
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
bool isDebugOutputEnabled() const
Get whether debug output is enabled for this log.
Stream(Log *target, LogMessageLevel lml, bool maskDebug)