mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-16 10:25:36 +08:00
refs #335 disable context logging to console in swiftgui_std
This commit is contained in:
committed by
Roland Winklmeier
parent
73eee7af1e
commit
216b9f170d
@@ -64,6 +64,11 @@ namespace BlackMisc
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
CLogPatternHandler *CLogHandler::handlerForCategory(const CLogCategory &category)
|
||||||
|
{
|
||||||
|
return handlerForPattern(CLogPattern::exactMatch(category));
|
||||||
|
}
|
||||||
|
|
||||||
QList<CLogPatternHandler *> CLogHandler::handlersForMessage(const CStatusMessage &message) const
|
QList<CLogPatternHandler *> CLogHandler::handlersForMessage(const CStatusMessage &message) const
|
||||||
{
|
{
|
||||||
QList<CLogPatternHandler *> m_handlers;
|
QList<CLogPatternHandler *> m_handlers;
|
||||||
|
|||||||
@@ -47,6 +47,10 @@ namespace BlackMisc
|
|||||||
//! \warning This must only be called from the main thread.
|
//! \warning This must only be called from the main thread.
|
||||||
CLogPatternHandler *handlerForPattern(const CLogPattern &pattern);
|
CLogPatternHandler *handlerForPattern(const CLogPattern &pattern);
|
||||||
|
|
||||||
|
//! Return a pattern handler for subscribing to all messages which contain the given category.
|
||||||
|
//! \warning This must only be called from the main thread.
|
||||||
|
CLogPatternHandler *handlerForCategory(const CLogCategory &category);
|
||||||
|
|
||||||
//! Return a pattern handler for subscribing to all validation warnings and errors.
|
//! Return a pattern handler for subscribing to all validation warnings and errors.
|
||||||
//! \warning This must only be called from the main thread.
|
//! \warning This must only be called from the main thread.
|
||||||
CLogPatternHandler *handlerForValidation()
|
CLogPatternHandler *handlerForValidation()
|
||||||
|
|||||||
@@ -43,6 +43,8 @@ int main(int argc, char *argv[])
|
|||||||
// application
|
// application
|
||||||
QApplication a(argc, argv);
|
QApplication a(argc, argv);
|
||||||
CLogHandler::instance()->install();
|
CLogHandler::instance()->install();
|
||||||
|
BlackMisc::CLogHandler::instance()->handlerForCategory(CLogCategory::context())->enableConsoleOutput(false);
|
||||||
|
|
||||||
QIcon icon(BlackMisc::CIcons::swift24());
|
QIcon icon(BlackMisc::CIcons::swift24());
|
||||||
QApplication::setWindowIcon(icon);
|
QApplication::setWindowIcon(icon);
|
||||||
const QString s = CStyleSheetUtility::instance().styles(
|
const QString s = CStyleSheetUtility::instance().styles(
|
||||||
|
|||||||
Reference in New Issue
Block a user