| 2749 | } |
| 2750 | |
| 2751 | void |
| 2752 | AppManager::showErrorLog() |
| 2753 | { |
| 2754 | std::list<LogEntry> log; |
| 2755 | getErrorLog_mt_safe(&log); |
| 2756 | for (std::list<LogEntry>::iterator it = log.begin(); it != log.end(); ++it) { |
| 2757 | // only print time - QTime.toString() uses the system locale, that's not what we want |
| 2758 | std::cout << QString::fromUtf8("[%2] %1: %3") |
| 2759 | .arg(it->context) |
| 2760 | .arg( QLocale().toString( it->date.time(), QString::fromUtf8("HH:mm:ss.zzz")) ) |
| 2761 | .arg(it->message).toStdString() << std::endl; |
| 2762 | } |
| 2763 | } |
| 2764 | |
| 2765 | void |
| 2766 | AppManager::clearErrorLog_mt_safe() |
no test coverage detected