#include <OpenGUI_LogSystem.h>
Public Member Functions | |
| void | logMsg (const String &log, const String &message, unsigned int logLevel) |
| Send a message through the given log. | |
| LogMessage & | logMsg (const String &log, unsigned int logLevel) |
| A stream like interface for writing to logs. | |
| void | setLogListener (LogListener *listener) |
| Sets the used log listener to the given listener. Only 1 LogListener is used at a time. | |
| void | setLevel (unsigned int logLevel) |
| Sets the log level that is applied to all messages. This check occurs after the log specific checks. | |
| Log * | createLog (const String &name) |
| Explicitly create a new log. | |
| Log * | getLog (const String &name) |
| Get a log by name. | |
| void | destroyLog (const String &name) |
| Destroy a log by name. | |
Static Public Member Functions | |
| static LogManager & | getSingleton (void) |
| Retrieve the current singleton, if one exists. If none exists, this will cause an error. | |
| static LogManager * | getSingletonPtr (void) |
| Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0. | |
| static LogMessage & | SlogMsg (const String &log, unsigned int logLevel) |
| Same as logMsg, but implemented as a static function, with automatic singleton dereferencing. Should help make your code a little smaller. | |
|
|
Explicitly create a new log.
|
|
|
Destroy a log by name.
|
|
|
Get a log by name.
|
|
|
Retrieve the current singleton, if one exists. If none exists, this will cause an error.
|
|
|
Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0.
|
|
||||||||||||
|
A stream like interface for writing to logs. This should be pretty simple to use for just about everyone. Works just like standard C++ stream (since it is based off of them). myLogmanagerPtr->logMsg("myLog", 1) << "Here is my log entry, and the number " << 4 << Log::end; |
|
||||||||||||||||
|
Send a message through the given log.
This is equivalent to getLog(log)->write(message, logLevel); |
|
|
Sets the log level that is applied to all messages. This check occurs after the log specific checks.
|
|
|
Sets the used log listener to the given listener. Only 1 LogListener is used at a time. If you want more than 1 output stream, do it in a custom LogListener. |
|
||||||||||||
|
Same as logMsg, but implemented as a static function, with automatic singleton dereferencing. Should help make your code a little smaller.
|