Summary: | log viewer plugin: time/date of an event | ||
---|---|---|---|
Product: | [Applications] ktorrent | Reporter: | Damir Perisa <damir.perisa> |
Component: | general | Assignee: | Joris Guisson <joris.guisson> |
Status: | RESOLVED FIXED | ||
Severity: | wishlist | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Damir Perisa
2007-08-09 14:41:35 UTC
SVN commit 698265 by guisson: Show date and time in logging output of logviewer plugin BUG: 148680 M +4 -3 log.cpp --- trunk/extragear/network/ktorrent/libktorrent/util/log.cpp #698264:698265 @@ -128,10 +128,11 @@ // this could result in the loss of some messages if (!rotate_job) { - *out << QDateTime::currentDateTime().toString() << ": " << tmp << ::endl; + QString final = QDateTime::currentDateTime().toString() + ": " + tmp; + *out << final << ::endl; fptr->flush(); if (to_cout) - std::cout << tmp.toLocal8Bit().constData() << std::endl;; + std::cout << final.toLocal8Bit().constData() << std::endl;; if (monitors.count() > 0) { @@ -139,7 +140,7 @@ while (i != monitors.end()) { kt::LogMonitorInterface* lmi = *i; - lmi->message(tmp,m_filter); + lmi->message(final,m_filter); i++; } } wow, that was fast :) |