Generic logger class to pass messages between objects.
More...
#include <messagelogger.h>
Inherits QObject.
Generic logger class to pass messages between objects.
- Note
- This class is thread-safe, i.e. several threads can log or retrieve logging messages simultanously.
◆ ColorTheme
Enumerator |
---|
None | |
Light | |
Dark | |
◆ MessageLogger() [1/3]
(Default) construdtor creating a top-level logger
◆ MessageLogger() [2/3]
MessageLogger |
( |
MessageLogger * |
parentLogger, |
|
|
const QString & |
group = QString() , |
|
|
bool |
record = false , |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
noexcept |
Constructor for a (conditionally) child logger.
◆ MessageLogger() [3/3]
Copy constructor.
- Parameters
-
◆ ~MessageLogger()
◆ hasMessages()
bool hasMessages |
( |
| ) |
const |
|
noexcept |
◆ getMessages()
◆ getMessagesPlain()
QStringList getMessagesPlain |
( |
| ) |
const |
|
noexcept |
◆ getMessagesRichText()
QString getMessagesRichText |
( |
ColorTheme |
theme | ) |
const |
|
noexcept |
◆ clear()
◆ log()
void log |
( |
QtMsgType |
type, |
|
|
const QString & |
msg |
|
) |
| |
|
noexcept |
◆ debug()
void debug |
( |
const QString & |
msg | ) |
|
|
noexcept |
◆ info()
void info |
( |
const QString & |
msg | ) |
|
|
noexcept |
◆ warning()
void warning |
( |
const QString & |
msg | ) |
|
|
noexcept |
◆ critical()
void critical |
( |
const QString & |
msg | ) |
|
|
noexcept |
◆ operator=()
◆ msgEmitted
void msgEmitted |
( |
const Message & |
msg | ) |
|
|
signal |
◆ mMutex
◆ mParent
◆ mPrefix
◆ mRecord
◆ mMessages
The documentation for this class was generated from the following files: