mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-03-23 07:15:35 +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 *> m_handlers;
|
||||
|
||||
@@ -47,6 +47,10 @@ namespace BlackMisc
|
||||
//! \warning This must only be called from the main thread.
|
||||
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.
|
||||
//! \warning This must only be called from the main thread.
|
||||
CLogPatternHandler *handlerForValidation()
|
||||
|
||||
@@ -43,6 +43,8 @@ int main(int argc, char *argv[])
|
||||
// application
|
||||
QApplication a(argc, argv);
|
||||
CLogHandler::instance()->install();
|
||||
BlackMisc::CLogHandler::instance()->handlerForCategory(CLogCategory::context())->enableConsoleOutput(false);
|
||||
|
||||
QIcon icon(BlackMisc::CIcons::swift24());
|
||||
QApplication::setWindowIcon(icon);
|
||||
const QString s = CStyleSheetUtility::instance().styles(
|
||||
|
||||
Reference in New Issue
Block a user