#include <tnlLog.h>
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. | |
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.
|
|
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(). |
1.2.18