'Record a job-level status event.
Logs an event noteworthy to the Autotest job as a whole. Messages will
be written into a global status log file, as well as a subdir-local
status log file (if subdir is specified).
:param status_code: A string status code describing the type of status
entry being recorded. It must pass
log.is_valid_status to be considered valid.
:param subdir: A specific results subdirectory this also applies to, or
None. If not None the subdirectory must exist.
:param operation: A string describing the operation that was run.
:param status: An optional human-readable message describing the status
entry, for example an error message or "completed
successfully".
:param optional_fields: An optional dictionary of additional named
fields to be included with the status message.
Every time timestamp and localtime entries are
generated with the current time and added to
this dictionary.'

def record(self, status_code, subdir, operation, status='', optional_fields=None):

    entry = status_log_entry(status_code, subdir, operation, status, optional_fields)
    self.record_entry(entry)
