'The core hook, which can safely call job.record.'

@staticmethod
def _hook(job, entry):

    entries = []
    for (timestamp, msg) in job._read_warnings():
        warning_entry = base_job.status_log_entry('WARN', None, None, msg, {}, timestamp=timestamp)
        entries.append(warning_entry)
        job.record_entry(warning_entry)
    entries.append(entry)
    for entry in entries:
        rendered_entry = job._logger.render_entry(entry)
        logging.info(rendered_entry)
        job._parse_status(rendered_entry)
