summaryrefslogtreecommitdiffstats
path: root/logger/QsLog.h
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2015-01-12 22:18:26 +0100
committerPetr Mrázek <peterix@gmail.com>2015-01-12 22:18:26 +0100
commit0be0e822e49ec89e29cac29ea67fe8e6e26cc08f (patch)
treebe1b9a6b6ad3844131e625b698bda4dff8a9defd /logger/QsLog.h
parent55e5322fbeda2d07264cd9d9a910c7714aa5d025 (diff)
downloadMultiMC-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar
MultiMC-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar.gz
MultiMC-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar.lz
MultiMC-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.tar.xz
MultiMC-0be0e822e49ec89e29cac29ea67fe8e6e26cc08f.zip
GH-720 Add timestamps (since mmc start) to log
Diffstat (limited to 'logger/QsLog.h')
-rw-r--r--logger/QsLog.h6
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.