logger: export LogEntry symbols
[quassel.git] / src / common / logger.h
index 7b88078..f55590c 100644 (file)
@@ -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;
     };
 
     /**