Drag[en]gine Game Engine  1.0
deLoggerConsole Class Reference

Logs to the standard output stream (aka the console in most cases). More...

#include <deLoggerConsole.h>

Inheritance diagram for deLoggerConsole:
deLogger deObject

Public Member Functions

Management
virtual void LogInfo (const char *source, const char *message)
 Log information message. More...
 
virtual void LogWarn (const char *source, const char *message)
 Log warning message. More...
 
virtual void LogError (const char *source, const char *message)
 Log error message. More...
 
- Public Member Functions inherited from deLogger
virtual void LogInfoFormat (const char *source, const char *message,...)
 Log formatted information message. More...
 
virtual void LogInfoFormatUsing (const char *source, const char *message, va_list args)
 Log formatted information message. More...
 
virtual void LogWarnFormat (const char *source, const char *message,...)
 Log formated warning message. More...
 
virtual void LogWarnFormatUsing (const char *source, const char *message, va_list args)
 Log formated warning message. More...
 
virtual void LogErrorFormat (const char *source, const char *message,...)
 Log formated error message. More...
 
virtual void LogErrorFormatUsing (const char *source, const char *message, va_list args)
 Log formated error message. More...
 
virtual void LogException (const char *source, const deException &exception)
 Log exception error message. More...
 
 deLogger ()
 Creates logger. More...
 
- Public Member Functions inherited from deObject
int GetRefCount () const
 Reference count. More...
 
void AddReference ()
 Add reference increasing reference count by 1. More...
 
void FreeReference ()
 Decrease reference count by one and delete object if count reaches 0. More...
 
 deObject ()
 Create object with reference count of 1. More...
 

Protected Member Functions

deMutexGetMutex ()
 
- Protected Member Functions inherited from deLogger
virtual ~deLogger ()
 Clean up logger. More...
 
- Protected Member Functions inherited from deObject
virtual ~deObject ()
 Clean up object. More...
 

Constructors and Destructors

 deLoggerConsole ()
 Create console logger. More...
 
virtual ~deLoggerConsole ()
 Clean up console logger. More...
 

Detailed Description

Logs to the standard output stream (aka the console in most cases).

Note
Logger console is thread safe.

Constructor & Destructor Documentation

◆ deLoggerConsole()

deLoggerConsole::deLoggerConsole ( )

Create console logger.

◆ ~deLoggerConsole()

virtual deLoggerConsole::~deLoggerConsole ( )
protectedvirtual

Clean up console logger.

Note
Subclasses should set their destructor protected too to avoid users accidently deleting a reference counted object through the object pointer. Only FreeReference() is allowed to delete the object.

Member Function Documentation

◆ GetMutex()

deMutex& deLoggerConsole::GetMutex ( )
inlineprotected

◆ LogError()

virtual void deLoggerConsole::LogError ( const char *  source,
const char *  message 
)
virtual

Log error message.

Reimplemented from deLogger.

◆ LogInfo()

virtual void deLoggerConsole::LogInfo ( const char *  source,
const char *  message 
)
virtual

Log information message.

Reimplemented from deLogger.

◆ LogWarn()

virtual void deLoggerConsole::LogWarn ( const char *  source,
const char *  message 
)
virtual

Log warning message.

Reimplemented from deLogger.


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