diff options
author | Petr Mrázek <peterix@gmail.com> | 2015-01-12 22:18:26 +0100 |
---|---|---|
committer | Petr Mrázek <peterix@gmail.com> | 2015-01-12 22:18:26 +0100 |
commit | 0be0e822e49ec89e29cac29ea67fe8e6e26cc08f (patch) | |
tree | be1b9a6b6ad3844131e625b698bda4dff8a9defd /logger/QsLog.h | |
parent | 55e5322fbeda2d07264cd9d9a910c7714aa5d025 (diff) | |
download | PrismLauncher-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar.gz PrismLauncher-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar.bz2 PrismLauncher-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.zip |
GH-720 Add timestamps (since mmc start) to log
Diffstat (limited to 'logger/QsLog.h')
-rw-r--r-- | logger/QsLog.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 <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. |