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;
Generic logger class to pass messages between objects.
Definition messagelogger.h:43
void clear() noexcept
Definition messagelogger.cpp:116
QPointer< MessageLogger > mParent
Definition messagelogger.h:104
QString getMessagesRichText(ColorTheme theme) const noexcept
Definition messagelogger.cpp:104
void msgEmitted(const Message &msg)
QRecursiveMutex mMutex
Definition messagelogger.h:103
void debug(const QString &msg) noexcept
Definition messagelogger.cpp:135
QString mPrefix
Definition messagelogger.h:105
void warning(const QString &msg) noexcept
Definition messagelogger.cpp:143
QList< Message > getMessages() const noexcept
Definition messagelogger.cpp:87
ColorTheme
Definition messagelogger.h:47
void log(QtMsgType type, const QString &msg) noexcept
Definition messagelogger.cpp:121
bool mRecord
Definition messagelogger.h:106
QList< Message > mMessages
Definition messagelogger.h:107
void info(const QString &msg) noexcept
Definition messagelogger.cpp:139
QStringList getMessagesPlain() const noexcept
Definition messagelogger.cpp:96
void critical(const QString &msg) noexcept
Definition messagelogger.cpp:147
bool hasMessages() const noexcept
Definition messagelogger.cpp:82
Definition occmodel.cpp:76
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