| 2687 | } |
| 2688 | |
| 2689 | void |
| 2690 | AppManager::showErrorLog() |
| 2691 | { |
| 2692 | std::list<LogEntry> log; |
| 2693 | getErrorLog_mt_safe(&log); |
| 2694 | for (std::list<LogEntry>::iterator it = log.begin(); it != log.end(); ++it) { |
| 2695 | // only print time - QTime.toString() uses the system locale, that's not what we want |
| 2696 | std::cout << QString::fromUtf8("[%2] %1: %3") |
| 2697 | .arg(it->context) |
| 2698 | .arg( QLocale().toString( it->date.time(), QString::fromUtf8("HH:mm:ss.zzz")) ) |
| 2699 | .arg(it->message).toStdString() << std::endl; |
| 2700 | } |
| 2701 | } |
| 2702 | |
| 2703 | void |
| 2704 | AppManager::clearErrorLog_mt_safe() |
no test coverage detected