X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;f=src%2Fcommon%2Flogger.h;h=f55590c1c696efc1538f5846f5f1440050ac1693;hb=579e559a6322209df7cd51c34801fecff5fe734b;hp=7b88078f162614df7eee9d0d334dcb374c516929;hpb=c18e611a6b8c07049cc82b2dcdb5b138d9a6dd43;p=quassel.git diff --git a/src/common/logger.h b/src/common/logger.h index 7b88078f..f55590c1 100644 --- a/src/common/logger.h +++ b/src/common/logger.h @@ -50,11 +50,18 @@ public: Fatal }; - struct LogEntry + struct COMMON_EXPORT LogEntry { QDateTime timeStamp; LogLevel logLevel; QString message; + + /** + * Gets this log entry in a printable format, with timestamp and log level + * + * @return the log entry, formatted with timestamp and log level + */ + QString toString() const; }; /**