* and won't store further ones.
*
* @param keepMessages Whether messages should be kept
- * @returns true, if initialization was successful
+ * @throws ExitException, if command line options are invalid
*/
- bool setup(bool keepMessages);
+ void setup(bool keepMessages);
/**
* Accesses the stores log messages, e.g. for consumption by DebugLogWidget.
*/
std::vector<Logger::LogEntry> messages() const;
-#if QT_VERSION < 0x050000
- static void messageHandler(QtMsgType type, const char *message);
-#else
static void messageHandler(QtMsgType type, const QMessageLogContext &context, const QString &message);
-#endif
/**
* Takes the given message with the given log level, formats it and emits the @a messageLogged() signal.