refs #335 disable context logging to console in swiftgui_std

This commit is contained in:
Klaus Basan
2014-11-29 19:08:38 +01:00
committed by Roland Winklmeier
parent 73eee7af1e
commit 216b9f170d
3 changed files with 11 additions and 0 deletions

View File

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

View File

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