#include <plog.h>
Public Member Functions | |
| SystemLog (const std::string &ident) | |
| Constructor. | |
| ~SystemLog () | |
| const std::string & | ident () const |
| Returns the application identifier. | |
| void | addLogger (Logger *log) |
| Add a logger. | |
| bool | removeLogger (Logger *log) |
| Remove a logger. | |
| void | restart () |
| Restart current active loggers. | |
| void | enableSubsys (const std::string &name) |
| Enable logging of subsystem. | |
| void | disableSubsys (const std::string &name) |
| Disable logging of subsystem. | |
| SystemLog & | operator() (const std::string &subsys, LogLevel l) |
| Set subsystem identifier and log message severity for calling thread. | |
| SystemLog & | operator() (LogLevel l) |
| Set log message severity for calling thread. | |
| const std::list< Logger * > | loggers () const |
Protected Member Functions | |
| int | overflow (int c) |
The system logging class can be used to output application log messages on multiple logging targets. To output a log message simply use the stream output operators. The class is thread-safe. It maintains a separate output buffer, subsystem identifier and log message level for each thread.
Definition at line 92 of file plog.h.
|
|
Constructor.
|
|
|
|
|
|
Add a logger.
|
|
|
Disable logging of subsystem.
|
|
|
Enable logging of subsystem.
|
|
|
Returns the application identifier.
|
|
|
|
|
|
Set log message severity for calling thread.
|
|
||||||||||||
|
Set subsystem identifier and log message severity for calling thread.
|
|
|
|
|
|
Remove a logger.
|
|
|
Restart current active loggers.
|
1.3.3