6 // --------------------------------------------------
8 // --------------------------------------------------
30 f = new QFile ("/tmp/yandex-traffic-widget.log");
32 if (!f->open (QIODevice::Text | QIODevice::Truncate | QIODevice::WriteOnly)) {
56 void Log::add (const QString &line)
62 QString ts = QDateTime::currentDateTime ().toString ("dd:MM:yy hh.mm.ss.zzz: ");
64 f->write (ts.toUtf8 ());
65 f->write (line.toUtf8 ());