diff options
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. |