The log manager handles the creation and retrieval of logs for the application.
More...
|
| LogManager () |
|
| ~LogManager () |
|
Log * | createLog (const String &name, bool defaultLog=false, bool debuggerOutput=true, bool suppressFileOutput=false) |
| Creates a new log with the given name.
|
|
void | destroyLog (const String &name) |
| Closes and removes a named log.
|
|
void | destroyLog (Log *log) |
| Closes and removes a log.
|
|
Log * | getDefaultLog () |
| Returns a pointer to the default log.
|
|
Log * | getLog (const String &name) |
| Retrieves a log managed by this class.
|
|
void | logMessage (const String &message, LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
| Log a message to the default log.
|
|
void | logMessage (LogMessageLevel lml, const String &message, bool maskDebug=false) |
| Log a message to the default log (signature for backward compatibility).
|
|
void | operator delete (void *ptr) |
|
void | operator delete (void *ptr, const char *, int, const char *) |
|
void | operator delete (void *ptr, void *) |
|
void | operator delete[] (void *ptr) |
|
void | operator delete[] (void *ptr, const char *, int, const char *) |
|
void * | operator new (size_t sz) |
|
void * | operator new (size_t sz, const char *file, int line, const char *func) |
| operator new, with debug line info
|
|
void * | operator new (size_t sz, void *ptr) |
| placement operator new
|
|
void * | operator new[] (size_t sz) |
|
void * | operator new[] (size_t sz, const char *file, int line, const char *func) |
| array operator new, with debug line info
|
|
Log * | setDefaultLog (Log *newLog) |
| Sets the passed in log as the default log.
|
|
void | setLogDetail (LoggingLevel ll) |
| Sets the level of detail of the default log.
|
|
Log::Stream | stream (LogMessageLevel lml=LML_NORMAL, bool maskDebug=false) |
| Get a stream on the default log.
|
|
The log manager handles the creation and retrieval of logs for the application.
- By default, Root will instantiate a LogManager (which becomes the Singleton instance) on construction, and will create a default log based on the Root construction parameters. If you want more control, for example redirecting log output right from the start or suppressing debug output, you need to create a LogManager yourself before creating a Root instance, then create a default log. Root will detect that you've created one yourself and won't create one of its own, thus using all your logging preferences from the first instance.