/***************************************************************************
- * Copyright (C) 2005-2018 by the Quassel Project *
+ * Copyright (C) 2005-2020 by the Quassel Project *
* devel@quassel-irc.org *
* *
* This program is free software; you can redistribute it and/or modify *
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;
};
/**
std::vector<LogEntry> _messages;
bool _keepMessages{true};
bool _initialized{false};
+ QByteArray _prgname;
};
Q_DECLARE_METATYPE(Logger::LogEntry)