|
DataDirector API
|
Central logging class. Handles all of the logic for registering/unregistering observers, accepting log entries, and notifying log observers. More...
#include <DDD_Log.h>
Public Member Functions | |
| virtual | ~DDD_Log () |
| void | LogDebug (const char *entry) |
| void | LogInfo (const char *entry) |
| void | LogWarning (const char *entry) |
| void | LogError (const char *entry) |
| void | LogEntry (const char *entry, DDD_LogEntry::LogLevel level) |
| void | AddObserver (DDD_LogObserver *observer) |
| void | RemoveObserver (DDD_LogObserver *observer) |
| void | Shutdown () |
Static Public Member Functions | |
| static DDD_Log & | Instance () |
Central logging class. Handles all of the logic for registering/unregistering observers, accepting log entries, and notifying log observers.
|
virtual |
Destructor.
| void AddObserver | ( | DDD_LogObserver * | observer | ) |
Add Log Observer
| observer | Pointer to a LogObserver (must not be NULL) |
|
static |
Singleton interface
| void LogDebug | ( | const char * | entry | ) |
Convenient LogEntry() wrapper for logging general information.
| entry | The logged entry string |
| void LogEntry | ( | const char * | entry, |
| DDD_LogEntry::LogLevel | level | ||
| ) |
Log Entry to log observers. This method notifies every log observer.
| entry | The logged entry string |
| level | The logged entry level |
| void LogError | ( | const char * | entry | ) |
Convenient LogEntry() wrapper for logging errors.
| entry | The logged entry string |
| void LogInfo | ( | const char * | entry | ) |
Convenient LogEntry() wrapper for logging general information.
| entry | The logged entry string |
| void LogWarning | ( | const char * | entry | ) |
Convenient LogEntry() wrapper for logging warnings.
| entry | The logged entry string |
| void RemoveObserver | ( | DDD_LogObserver * | observer | ) |
Remove Log Observer
| observer | Pointer to a LogObserver |
| void Shutdown | ( | ) |
Shutdown logger; simply clears observers list
1.8.10