logger: Dedup code, fix client Debug Log loglevel
[quassel.git] / src / common / logger.h
index 7b88078..c10b0e4 100644 (file)
@@ -55,6 +55,13 @@ public:
         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;
     };
 
     /**