|
QGroundControl
Ground Control Station for MAVLink Drones
|
Structured log entry. More...
#include <StateMachineLogger.h>
Public Member Functions | |
| QString | toString (bool colored=false, bool showTiming=true, bool indent=true) const |
| QJsonObject | toJson () const |
Public Attributes | |
| QDateTime | timestamp |
| qint64 | elapsedMs = 0 |
| LogLevel | level = Normal |
| LogEvent | event = EventNone |
| QString | machine |
| QString | state |
| QString | previousState |
| QString | message |
| QString | transitionReason |
| qint64 | stateDurationMs = 0 |
| QJsonObject | context |
| int | depth = 0 |
Structured log entry.
Definition at line 75 of file StateMachineLogger.h.
| QJsonObject StateMachineLogger::LogEntry::toJson | ( | ) | const |
Definition at line 129 of file StateMachineLogger.cc.
| QString StateMachineLogger::LogEntry::toString | ( | bool | colored = false, |
| bool | showTiming = true, |
||
| bool | indent = true |
||
| ) | const |
Definition at line 29 of file StateMachineLogger.cc.
References Colors::Blue, Colors::BoldRed, Colors::Cyan, depth, elapsedMs, event, StateMachineLogger::EventError, StateMachineLogger::EventMachineStart, StateMachineLogger::EventMachineStop, StateMachineLogger::EventProgress, StateMachineLogger::EventRetry, StateMachineLogger::EventSignal, StateMachineLogger::EventStateEntry, StateMachineLogger::EventStateExit, StateMachineLogger::EventTimeout, StateMachineLogger::EventTransition, Colors::Gray, Colors::Green, machine, Colors::Magenta, message, previousState, Colors::Reset, state, stateDurationMs, transitionReason, Colors::White, and Colors::Yellow.
| QJsonObject StateMachineLogger::LogEntry::context |
Definition at line 86 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), and StateMachineLogger::logEvent().
| int StateMachineLogger::LogEntry::depth = 0 |
Definition at line 87 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), StateMachineLogger::logEvent(), and toString().
| qint64 StateMachineLogger::LogEntry::elapsedMs = 0 |
Definition at line 77 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), StateMachineLogger::logEvent(), and toString().
Definition at line 79 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), StateMachineLogger::logEvent(), and toString().
Definition at line 78 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), and StateMachineLogger::logEvent().
| QString StateMachineLogger::LogEntry::machine |
Definition at line 80 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), StateMachineLogger::logEvent(), and toString().
| QString StateMachineLogger::LogEntry::message |
Definition at line 83 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), StateMachineLogger::logEvent(), and toString().
| QString StateMachineLogger::LogEntry::previousState |
Definition at line 82 of file StateMachineLogger.h.
Referenced by toString().
| QString StateMachineLogger::LogEntry::state |
Definition at line 81 of file StateMachineLogger.h.
Referenced by toString().
| qint64 StateMachineLogger::LogEntry::stateDurationMs = 0 |
Definition at line 85 of file StateMachineLogger.h.
Referenced by toString().
| QDateTime StateMachineLogger::LogEntry::timestamp |
Definition at line 76 of file StateMachineLogger.h.
Referenced by StateMachineLogger::log(), and StateMachineLogger::logEvent().
| QString StateMachineLogger::LogEntry::transitionReason |
Definition at line 84 of file StateMachineLogger.h.
Referenced by toString().