|
KanoopCommonQt 2.1.1
Kanoop foundational Qt utility library
|
|
Immutable record of a single log event. More...
#include <logentry.h>
Public Member Functions | |
| LogEntry () | |
| Default constructor — creates an empty Debug-level entry. | |
| LogEntry (LogLevel level, const LogCategory &category, const QDateTime ×tamp, const QString &formattedText, const QString &unformattedText) | |
| Construct a LogEntry with all fields. | |
| LogLevel | level () const |
| Return the severity level. | |
| Log::LogCategory | category () const |
| Return the log category. | |
| QDateTime | timestamp () const |
| Return the timestamp when this entry was created. | |
| QString | formattedText () const |
| Return the pre-formatted message text. | |
| QString | unformattedText () const |
| Return the raw, unformatted message text. | |
Immutable record of a single log event.
LogEntry objects are created by Logger and delivered to LogConsumer instances. They capture the severity level, category, timestamp, and both the raw and pre-formatted message text.
Definition at line 20 of file logentry.h.
|
inline |
Default constructor — creates an empty Debug-level entry.
Definition at line 24 of file logentry.h.
|
inline |
Construct a LogEntry with all fields.
| level | Severity level of this entry |
| category | Log category associated with this entry |
| timestamp | When this entry was generated |
| formattedText | Pre-formatted message text (includes level, timestamp, etc.) |
| unformattedText | Raw message text without formatting |
Definition at line 34 of file logentry.h.
References Log::level().
|
inline |
Return the log category.
Definition at line 47 of file logentry.h.
|
inline |
Return the pre-formatted message text.
Definition at line 59 of file logentry.h.
|
inline |
|
inline |
Return the timestamp when this entry was created.
Definition at line 53 of file logentry.h.
|
inline |
Return the raw, unformatted message text.
Definition at line 65 of file logentry.h.