Represents an entry of the log database. More...
Header: | #include <LogEntry> |
LogEntry(QDateTime timestamp, Logging::LoggingLevel level, Logging::LoggingSource source, int errorCode = 0) | |
LogEntry(Logging::LoggingLevel level, Logging::LoggingSource source, int errorCode = 0) | |
LogEntry(Logging::LoggingSource source) | |
bool | active() const |
DeviceId | deviceId() const |
int | errorCode() const |
Logging::LoggingEventType | eventType() const |
Logging::LoggingLevel | level() const |
void | setActive(bool active) |
void | setDeviceId(const DeviceId & deviceId) |
void | setEventType(const Logging::LoggingEventType & eventType) |
void | setTypeId(const QUuid & typeId) |
void | setValue(const QVariant & value) |
Logging::LoggingSource | source() const |
QDateTime | timestamp() const |
QUuid | typeId() const |
QVariant | value() const |
Represents an entry of the log database.
A LogEntry represents an a nymea event which can be stored from the LogEngine to the database. Each LogEntry has a timestamp an can be loaded from the database and stored in the database.
See also LogEngine, LogFilter, LogsResource, and LoggingHandler.
Constructs a LogEntry with the given timestamp, level, source and errorCode.
Constructs a LogEntry with the given level, source and errorCode.
Constructs a LogEntry with the given source.
Returns true if this LogEntry is a system active type.
See also setActive().
Returns the deviceId of this LogEntry.
See also setDeviceId().
Returns the error code of this LogEntry.
Returns the event type of this LogEntry.
See also setEventType().
Returns the level of this LogEntry.
Sets this LogEntry to active.
See also active().
Sets the deviceId of this LogEntry.
See also deviceId().
Sets the eventType of this LogEntry.
See also eventType().
Sets the typeId of this LogEntry.
See also typeId().
Sets the value of this LogEntry.
See also value().
Returns the source of this LogEntry.
Returns the timestamp of this LogEntry.
Returns the type ID of this LogEntry.
See also setTypeId().
Returns the value of this LogEntry.
See also setValue().