TNL::LogConsumer Class Reference
#include <tnlLog.h>
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.
Constructor & Destructor Documentation
TNL::LogConsumer::LogConsumer |
( |
|
) |
|
|
|
Constructor adds this LogConsumer to the global linked list.
|
|
Destructor removes this LogConsumer from the global linked list, and updates the log flags.
|
Member Function Documentation
LogConsumer* TNL::LogConsumer::getLinkedList |
( |
|
) |
[inline, static] |
|
|
Returns the head of the linked list of all log consumers.
|
virtual 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. |
Field Documentation
|
Next LogConsumer in the global linked list of log consumers.
|
|
Previous LogConsumer in the global linked list of log consumers.
|
|
Head of the global linked list of log consumers.
|