#include <logsink.h>
Public Member Functions | |
| LogSink () | |
| virtual | ~LogSink () |
| void | log (LogLevel level, LogArea area, const std::string &message) const |
| void | dbg (LogArea area, const std::string &message) const |
| void | warn (LogArea area, const std::string &message) const |
| void | err (LogArea area, const std::string &message) const |
| void | registerLogHandler (LogLevel level, int areas, LogHandler *lh) |
| void | removeLogHandler (LogHandler *lh) |
To log the output of your Client or Component, use ClientBase's logInstance() to get hold of the LogSink object for that ClientBase. Register your LogHandler with that instance.
You should not need to use this class directly.
Definition at line 38 of file logsink.h.
|
|
Constructor. Definition at line 20 of file logsink.cpp. |
|
|
Virtual destructor. Definition at line 24 of file logsink.cpp. |
|
||||||||||||
|
Use this function to log a debug message with given LogIdentifier. This is a convenience wrapper around log().
|
|
||||||||||||
|
Use this function to log a error message with given LogIdentifier. This is a convenience wrapper around log().
|
|
||||||||||||||||
|
Use this function to log a message with given LogLevel and LogIdentifier. dbg(), warn(), and err() are alternative shortcuts.
Definition at line 28 of file logsink.cpp. |
|
||||||||||||||||
|
Registers
Definition at line 38 of file logsink.cpp. |
|
|
Removes the given object from the list of log handlers.
Definition at line 44 of file logsink.cpp. |
|
||||||||||||
|
Use this function to log a warning message with given LogIdentifier. This is a convenience wrapper around log().
|
1.4.1