batch::BatchJobLog
One log line that a batch job wrote: its level, its message and when it was written.
| Declared in | src/libs/libbatch/batch/BatchJobLog.hpp |
| Group | batch |
Detailed description
A worker writes a line through JobContext::log(), and BatchQueue::appendLog() makes the entry. The queue gives each entry an id and a UTC timestamp, keeps it with its job, and emits jobLogAppended(). The queue drops a line for a job it does not know. BatchQueue::logs() returns the lines of one job, a page at a time. toVariantMap() and fromVariantMap() convert an entry to and from a QVariantMap.