#include <tnlLog.h>
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.
Public Member Functions | |
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 Member Functions | |
LogConsumer * | getLinkedList () |
Returns the head of the linked list of all log consumers. | |
Private Attributes | |
LogConsumer * | mNextConsumer |
Next LogConsumer in the global linked list of log consumers. | |
LogConsumer * | mPrevConsumer |
Previous LogConsumer in the global linked list of log consumers. | |
Static Private Attributes | |
LogConsumer * | mLinkedList |
Head of the global linked list of log consumers. |
|
Constructor adds this LogConsumer to the global linked list.
|
|
Destructor removes this LogConsumer from the global linked list, and updates the log flags.
|
|
Returns the head of the linked list of all log consumers.
|
|
Returns the next LogConsumer in the linked list.
|
|
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. |
|
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.
|