FougTools
0.7.0dev-046fb6a
Handy tools for C++, Qt and OpenCascade
|
Abstract base class of all logging message handlers. More...
#include <qttools/core/log.h>
Public Member Functions | |
AbstractLogHandler () | |
virtual | ~AbstractLogHandler () |
virtual void | handle (Log::MessageType msgType, const QString &msg)=0 |
Handle logging message msg of type msgType . More... | |
void | setAutoDetach (bool b) |
Set the log handler to auto-detach mode if b is true. More... | |
Abstract base class of all logging message handlers.
qtcore::AbstractLogHandler::AbstractLogHandler | ( | ) |
|
virtual |
|
pure virtual |
Handle logging message msg
of type msgType
.
Implemented in qtcore::LogDispatcher.
void qtcore::AbstractLogHandler::setAutoDetach | ( | bool | b | ) |
Set the log handler to auto-detach mode if b
is true.
If auto-detach is enabled then when the log handler is destroyed it gets automatically detached from the global list of log handlers.
Auto-detach is disabled by default