|
QGroundControl
Ground Control Station for MAVLink Drones
|
Enumerations | |
| enum | Format { PlainText = 0 , JSON = 1 , CSV = 2 , JSONLines = 3 } |
| enum | JsonSchema { ExportSchema , RemoteCompactSchema } |
Functions | |
| static QString | escapeCsv (const QString &field) |
| QString | formatCsvRow (const LogEntry &entry) |
| QString | csvHeader () |
| QByteArray | format (const QList< LogEntry > &entries, int fmt) |
| QByteArray | formatAsText (const QList< LogEntry > &entries) |
| QJsonObject | entryToJson (const LogEntry &e, JsonSchema schema) |
| QByteArray | formatAsJson (const QList< LogEntry > &entries) |
| QByteArray | formatAsCsv (const QList< LogEntry > &entries) |
| QByteArray | formatAsJsonLines (const QList< LogEntry > &entries) |
| enum LogFormatter::Format |
| Enumerator | |
|---|---|
| PlainText | |
| JSON | |
| CSV | |
| JSONLines | |
Definition at line 12 of file LogFormatter.h.
| Enumerator | |
|---|---|
| ExportSchema | |
| RemoteCompactSchema | |
Definition at line 20 of file LogFormatter.h.
| QString LogFormatter::csvHeader | ( | ) |
Definition at line 31 of file LogFormatter.cc.
Referenced by formatAsCsv().
| QJsonObject LogFormatter::entryToJson | ( | const LogEntry & | e, |
| JsonSchema | schema | ||
| ) |
Definition at line 65 of file LogFormatter.cc.
References LogEntry::category, LogEntry::level, LogEntry::levelLabel(), LogEntry::message, RemoteCompactSchema, and LogEntry::timestamp.
Referenced by formatAsJson(), and formatAsJsonLines().
|
static |
Definition at line 15 of file LogFormatter.cc.
Referenced by formatCsvRow().
| QByteArray LogFormatter::format | ( | const QList< LogEntry > & | entries, |
| int | fmt | ||
| ) |
Definition at line 40 of file LogFormatter.cc.
References CSV, formatAsCsv(), formatAsJson(), formatAsJsonLines(), formatAsText(), JSON, and JSONLines.
| QByteArray LogFormatter::formatAsCsv | ( | const QList< LogEntry > & | entries | ) |
Definition at line 92 of file LogFormatter.cc.
References csvHeader(), and formatCsvRow().
Referenced by format().
| QByteArray LogFormatter::formatAsJson | ( | const QList< LogEntry > & | entries | ) |
| QByteArray LogFormatter::formatAsJsonLines | ( | const QList< LogEntry > & | entries | ) |
| QByteArray LogFormatter::formatAsText | ( | const QList< LogEntry > & | entries | ) |
Definition at line 54 of file LogFormatter.cc.
Referenced by format().
| QString LogFormatter::formatCsvRow | ( | const LogEntry & | entry | ) |
Definition at line 25 of file LogFormatter.cc.
References LogEntry::category, escapeCsv(), LogEntry::levelLabel(), LogEntry::message, and LogEntry::timestamp.
Referenced by formatAsCsv().