refs #359, fixed loghandler, removed / fine tuning of some output / log messages

see also discussion in #359
This commit is contained in:
Klaus Basan
2014-12-15 23:19:52 +01:00
parent 0ea26f1ce9
commit f62f85b263
6 changed files with 13 additions and 16 deletions

View File

@@ -46,14 +46,13 @@ int main(int argc, char *argv[])
// application
QApplication a(argc, argv);
CLogHandler::instance()->install();
CLogHandler::instance()->enableConsoleOutput(false);
// CLogHandler::instance()->handlerForPattern(
// CLogPattern::anyOf({ CLogCategory::contextSlot(), CLogCategory::context() })
// )->enableConsoleOutput(false);
// CLogHandler::instance()->handlerForPattern(
// CLogPattern::anyOf({ CLogCategory::contextSlot(), CLogCategory::context() }).withSeverityAtOrAbove(CStatusMessage::SeverityInfo)
// )->enableConsoleOutput(true);
CLogHandler::instance()->enableConsoleOutput(true);
CLogHandler::instance()->handlerForPattern(
CLogPattern::anyOf({ CLogCategory::contextSlot(), CLogCategory::context() })
)->enableConsoleOutput(false);
CLogHandler::instance()->handlerForPattern(
CLogPattern::anyOf({ CLogCategory::contextSlot(), CLogCategory::context() }).withSeverityAtOrAbove(CStatusMessage::SeverityInfo)
)->enableConsoleOutput(true);
// Translations
QFile file(":blackmisc/translations/blackmisc_i18n_de.qm");