mirror of
https://github.com/PrismLauncher/PrismLauncher.git
synced 2025-06-12 05:07:46 +02:00
GH-720 Add timestamps (since mmc start) to log
This commit is contained in:
@ -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.
|
||||
|
Reference in New Issue
Block a user