37#if OGRE_PLATFORM == OGRE_PLATFORM_NACL
53 #define OGRE_LOG_THRESHOLD 4
124 Log(
const String& name,
bool debugOutput =
true,
bool suppressFileOutput =
false);
236 template <
typename T>
253#if OGRE_PLATFORM == OGRE_PLATFORM_NACL
255 static pp::Instance* mInstance;
257 static void setInstance(pp::Instance* instance) {mInstance = instance;};
virtual void messageLogged(const String &message, LogMessageLevel lml, bool maskDebug, const String &logName, bool &skipThisMessage)=0
Stream object which targets a log.
StringUtil::StrStreamType BaseStream
Stream(const Stream &rhs)
Stream(Log *target, LogMessageLevel lml, bool maskDebug)
Log(const String &name, bool debugOutput=true, bool suppressFileOutput=false)
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>"),...
bool isFileOutputSuppressed() const
Get whether file output is suppressed for this log.
void addListener(LogListener *listener)
void setTimeStampEnabled(bool timeStamp)
const String & getName() const
Return the name of the log.
void setLogDetail(LoggingLevel ll)
void removeListener(LogListener *listener)
bool isTimeStampEnabled() const
Get whether time stamps are printed for this log.
void setDebugOutputEnabled(bool debugOutput)
Stream stream(LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
Get a stream object targeting this log.
LoggingLevel getLogDetail() const
Gets the level of the log detail.
bool isDebugOutputEnabled() const
Get whether debug output is enabled for this log.
vector< LogListener * >::type mtLogListener
StringStream StrStreamType
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.
LoggingLevel
The level of detail to which the log will go into.
LogMessageLevel
The importance of a logged message.
GeneralAllocatedObject LogAlloc
Simple type to indicate a flush of the stream to the log.