mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-21 12:55:31 +08:00
refs #446, changed log handler as discussed in slack
This commit is contained in:
committed by
Mathew Sutcliffe
parent
9b77e1fc5c
commit
9d0408138a
@@ -42,7 +42,7 @@ namespace BlackMisc
|
||||
static CLogHandler *instance();
|
||||
|
||||
//! Tell the CLogHandler to install itself with qInstallMessageHandler.
|
||||
void install();
|
||||
void install(bool skipIfAlreadyInstalled = false);
|
||||
|
||||
//! Return a pattern handler for subscribing to all messages which match the given pattern.
|
||||
//! \warning This must only be called from the main thread.
|
||||
@@ -74,11 +74,7 @@ namespace BlackMisc
|
||||
void logRemoteMessage(const BlackMisc::CStatusMessage &message);
|
||||
|
||||
//! Enable or disable the default Qt handler.
|
||||
void enableConsoleOutput(bool enable)
|
||||
{
|
||||
Q_ASSERT(thread() == QThread::currentThread());
|
||||
m_enableFallThrough = enable;
|
||||
}
|
||||
void enableConsoleOutput(bool enable);
|
||||
|
||||
private:
|
||||
void logMessage(const BlackMisc::CStatusMessage &message);
|
||||
|
||||
Reference in New Issue
Block a user