swift
|
Class for subscribing to log messages. More...
Public Slots | |
void | logLocalMessage (const swift::misc::CStatusMessage &message) |
Called by our QtMessageHandler to log a message. | |
void | logRemoteMessage (const swift::misc::CStatusMessage &message) |
Called by the context to relay a message. | |
void | enableConsoleOutput (bool enable) |
Enable or disable the default Qt handler. | |
Signals | |
void | localMessageLogged (const swift::misc::CStatusMessage &message) |
Emitted when a message is logged in this process. | |
void | remoteMessageLogged (const swift::misc::CStatusMessage &message) |
Emitted when a log message is relayed from a different process. | |
void | subscriptionAdded (const swift::misc::CLogPattern &pattern) |
Emitted when an object subscribes to a pattern of log messages. | |
void | subscriptionRemoved (const swift::misc::CLogPattern &pattern) |
Emitted when an object unsubscribes from a pattern of log messages. | |
Public Member Functions | |
void | install (bool skipIfAlreadyInstalled=false) |
Tell the CLogHandler to install itself with qInstallMessageHandler. | |
CLogPatternHandler * | handlerForPattern (const CLogPattern &pattern) |
Return a pattern handler for subscribing to all messages which match the given pattern. More... | |
CLogPatternHandler * | handlerForCategory (const CLogCategory &category) |
Return a pattern handler for subscribing to all messages which contain the given category. More... | |
CLogPatternHandler * | handlerForValidation () |
Return a pattern handler for subscribing to all validation warnings and errors. More... | |
QList< CLogPattern > | getAllSubscriptions () const |
Returns all log patterns for which there are currently subscribed log pattern handlers. | |
Static Public Member Functions | |
static CLogHandler * | instance () |
Return pointer to the CLogHandler singleton. More... | |
Friends | |
class | CLogPatternHandler |
Class for subscribing to log messages.
Definition at line 36 of file loghandler.h.
CLogPatternHandler* swift::misc::CLogHandler::handlerForCategory | ( | const CLogCategory & | category | ) |
Return a pattern handler for subscribing to all messages which contain the given category.
CLogPatternHandler* swift::misc::CLogHandler::handlerForPattern | ( | const CLogPattern & | pattern | ) |
Return a pattern handler for subscribing to all messages which match the given pattern.
|
inline |
Return a pattern handler for subscribing to all validation warnings and errors.
Definition at line 64 of file loghandler.h.
|
static |
Return pointer to the CLogHandler singleton.