refs #446, changed log handler as discussed in slack

This commit is contained in:
Klaus Basan
2015-06-19 23:15:23 +02:00
committed by Mathew Sutcliffe
parent 9b77e1fc5c
commit 9d0408138a
3 changed files with 16 additions and 8 deletions

View File

@@ -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);