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