One log line that a batch job wrote: its level, its message and when it was written. More...
| Header: | #include <BatchJobLog> |
| Since: | 1.0 |
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.