20#ifndef LIBREPCB_CORE_MESSAGELOGGER_H
21#define LIBREPCB_CORE_MESSAGELOGGER_H
54 bool bulletPoint =
false) const noexcept;
62 MessageLogger(
bool record = true, QObject* parent =
nullptr) noexcept;
68 bool record = false, QObject* parent =
nullptr) noexcept;
89 void clear() noexcept;
90 void log(QtMsgType
type, const QString& msg) noexcept;
91 void debug(const QString& msg) noexcept;
92 void info(const QString& msg) noexcept;
93 void warning(const QString& msg) noexcept;
94 void critical(const QString& msg) noexcept;
103#if (QT_VERSION >= QT_VERSION_CHECK(5, 15, 0))
Generic logger class to pass messages between objects.
Definition: messagelogger.h:43
void clear() noexcept
Definition: messagelogger.cpp:130
QPointer< MessageLogger > mParent
Definition: messagelogger.h:108
QString getMessagesRichText(ColorTheme theme) const noexcept
Definition: messagelogger.cpp:118
void msgEmitted(const Message &msg)
QRecursiveMutex mMutex
Definition: messagelogger.h:104
void debug(const QString &msg) noexcept
Definition: messagelogger.cpp:149
QString mPrefix
Definition: messagelogger.h:109
void warning(const QString &msg) noexcept
Definition: messagelogger.cpp:157
QList< Message > getMessages() const noexcept
Definition: messagelogger.cpp:101
ColorTheme
Definition: messagelogger.h:47
void log(QtMsgType type, const QString &msg) noexcept
Definition: messagelogger.cpp:135
bool mRecord
Definition: messagelogger.h:110
QList< Message > mMessages
Definition: messagelogger.h:111
void info(const QString &msg) noexcept
Definition: messagelogger.cpp:153
QStringList getMessagesPlain() const noexcept
Definition: messagelogger.cpp:110
void critical(const QString &msg) noexcept
Definition: messagelogger.cpp:161
bool hasMessages() const noexcept
Definition: messagelogger.cpp:96
Definition: occmodel.cpp:77
Definition: messagelogger.h:49
QString toRichText(ColorTheme theme, bool bulletPoint=false) const noexcept
Definition: messagelogger.cpp:34
QtMsgType type
Definition: messagelogger.h:50
QString message
Definition: messagelogger.h:51