Main Page   Modules   Namespace List   Class Hierarchy   Compound List   File List   Namespace Members   Compound Members   Related Pages  

TNL::LogConsumer Class Reference

LogConsumer is the base class for the message logging system in TNL. More...

#include <tnlLog.h>

List of all members.

Public Methods

 LogConsumer ()
 Constructor adds this LogConsumer to the global linked list.

virtual ~LogConsumer ()
 Destructor removes this LogConsumer from the global linked list, and updates the log flags.

LogConsumer * getNext ()
 Returns the next LogConsumer in the linked list.

virtual void logString (const char *string)
 Writes a string to this instance of LogConsumer.


Static Public Methods

LogConsumer * getLinkedList ()
 Returns the head of the linked list of all log consumers.


Detailed Description

LogConsumer is the base class for the message logging system in TNL.

TNL by default doesn't log messages anywhere, but users of the library can instantiate subclasses that override the logString method. Any instantiated subclass of LogConsumer will receive all general logprintf's, as well as any TNLLogMessages that are enabled via the TNLLogEnable macro.

Definition at line 55 of file tnlLog.h.


Member Function Documentation

void TNL::LogConsumer::logString const char *    string [virtual]
 

Writes a string to this instance of LogConsumer.

By default the string is sent to the Platform::outputDebugString function. Subclasses might log to a file, a remote service, or even a message box.

Definition at line 76 of file log.cpp.

Referenced by TNL::logprintf().


The documentation for this class was generated from the following files:
Generated on Thu Aug 18 16:03:38 2005 for Robin Hood: Thieves & Knights by doxygen1.2.18