GH-720 Add timestamps (since mmc start) to log

This commit is contained in:
Petr Mrázek
2015-01-12 22:18:26 +01:00
parent 55e5322fbe
commit 0be0e822e4
2 changed files with 30 additions and 7 deletions

View File

@ -27,6 +27,7 @@
#include <QDebug>
#include <QString>
#include <QDateTime>
namespace QsLogging
{
@ -60,6 +61,11 @@ public:
void setLoggingLevel(Level newLevel);
//! The default level is INFO
Level loggingLevel() const;
//! msecs since the logger was initialized
qint64 timeSinceStart() const;
//! time when the logger was initialized
QDateTime timeOfStart() const;
//! The helper forwards the streaming to QDebug and builds the final
//! log message.