OGRE 2.1
Object-Oriented Graphics Rendering Engine
Loading...
Searching...
No Matches
Ogre::Log Class Reference

#include <OgreLog.h>

+ Inheritance diagram for Ogre::Log:

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)
 
LoggingLevel getLogDetail () const
 Gets the level of the log detail.
 
const StringgetName () const
 Return the name of the log.
 
bool isDebugOutputEnabled () const
 Get whether debug output is enabled for this 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.
 
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>"),.
 
void operator delete (void *ptr)
 
void operator delete (void *ptr, const char *, int, const char *)
 
void operator delete (void *ptr, void *)
 
void operator delete[] (void *ptr)
 
void operator delete[] (void *ptr, const char *, int, const char *)
 
voidoperator new (size_t sz)
 
voidoperator new (size_t sz, const char *file, int line, const char *func)
 operator new, with debug line info
 
voidoperator new (size_t sz, void *ptr)
 placement operator new
 
voidoperator new[] (size_t sz)
 
voidoperator new[] (size_t sz, const char *file, int line, const char *func)
 array operator new, with debug line info
 
void removeListener (LogListener *listener)
 
void setDebugOutputEnabled (bool debugOutput)
 
void setLogDetail (LoggingLevel ll)
 
void setTimeStampEnabled (bool timeStamp)
 
Stream stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false)
 Get a stream object targeting this log.
 

Public Attributes

 OGRE_AUTO_MUTEX
 

Detailed Description

Remarks
Log class for writing debug/log data to files.
Note

Should not be used directly, but trough the LogManager class.

Constructor & Destructor Documentation

◆ Log()

Ogre::Log::Log ( const String name,
bool  debugOutput = true,
bool  suppressFileOutput = false 
)
Remarks
Usual constructor - called by LogManager.

◆ ~Log()

Ogre::Log::~Log ( )
Remarks
Default destructor.

Member Function Documentation

◆ addListener()

void Ogre::Log::addListener ( LogListener listener)
Remarks
Register a listener to this log
Parameters
listenerA valid listener derived class

◆ getLogDetail()

LoggingLevel Ogre::Log::getLogDetail ( ) const
inline

Gets the level of the log detail.

◆ getName()

const String & Ogre::Log::getName ( ) const
inline

Return the name of the log.

◆ isDebugOutputEnabled()

bool Ogre::Log::isDebugOutputEnabled ( ) const
inline

Get whether debug output is enabled for this log.

◆ isFileOutputSuppressed()

bool Ogre::Log::isFileOutputSuppressed ( ) const
inline

Get whether file output is suppressed for this log.

◆ isTimeStampEnabled()

bool Ogre::Log::isTimeStampEnabled ( ) const
inline

Get whether time stamps are printed for this log.

◆ logMessage()

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<<().

◆ operator delete() [1/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr)
inlineinherited

◆ operator delete() [2/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator delete() [3/3]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete ( void ptr,
void  
)
inlineinherited

◆ operator delete[]() [1/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr)
inlineinherited

◆ operator delete[]() [2/2]

template<class Alloc >
void Ogre::AllocatedObject< Alloc >::operator delete[] ( void ptr,
const char ,
int  ,
const char  
)
inlineinherited

◆ operator new() [1/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz)
inlineinherited

◆ operator new() [2/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

operator new, with debug line info

◆ operator new() [3/3]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new ( size_t  sz,
void ptr 
)
inlineinherited

placement operator new

◆ operator new[]() [1/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz)
inlineinherited

◆ operator new[]() [2/2]

template<class Alloc >
void * Ogre::AllocatedObject< Alloc >::operator new[] ( size_t  sz,
const char file,
int  line,
const char func 
)
inlineinherited

array operator new, with debug line info

◆ removeListener()

void Ogre::Log::removeListener ( LogListener listener)
Remarks
Unregister a listener from this log
Parameters
listenerA valid listener derived class

◆ setDebugOutputEnabled()

void Ogre::Log::setDebugOutputEnabled ( bool  debugOutput)
Remarks
Enable or disable outputting log messages to the debugger.

◆ setLogDetail()

void Ogre::Log::setLogDetail ( LoggingLevel  ll)
Remarks
Sets the level of the log detail.

◆ setTimeStampEnabled()

void Ogre::Log::setTimeStampEnabled ( bool  timeStamp)
Remarks
Enable or disable time stamps.

◆ stream()

Stream Ogre::Log::stream ( LogMessageLevel  lml = LML_NORMAL,
bool  maskDebug = false 
)

Get a stream object targeting this log.

Member Data Documentation

◆ OGRE_AUTO_MUTEX

Ogre::Log::OGRE_AUTO_MUTEX

The documentation for this class was generated from the following file: