From 0be0e822e49ec89e29cac29ea67fe8e6e26cc08f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20Mr=C3=A1zek?= Date: Mon, 12 Jan 2015 22:18:26 +0100 Subject: GH-720 Add timestamps (since mmc start) to log --- logger/QsLog.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'logger/QsLog.h') diff --git a/logger/QsLog.h b/logger/QsLog.h index 6c96423c..2b7984e6 100644 --- a/logger/QsLog.h +++ b/logger/QsLog.h @@ -27,6 +27,7 @@ #include #include +#include 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. -- cgit v1.2.3