'Record a status_log_entry into the appropriate status log files.
:param log_entry: A status_log_entry instance to be recorded into the
status logs.
:param log_in_subdir: A boolean that indicates (when true) that subdir
logs should be written into the subdirectory status
log file.'

def record_entry(self, log_entry, log_in_subdir=True):

    job = self._jobref()
    if (job is None):
        logging.warning('Something    attempted    to    write    a    status    log    entry    after    its    job    terminated,    ignoring    the    attempt.')
        logging.warning(traceback.format_stack())
        return
    if self._record_hook:
        self._record_hook(log_entry)
    log_files = [os.path.join(job.resultdir, self.global_filename)]
    if (log_in_subdir and log_entry.subdir):
        log_files.append(os.path.join(job.resultdir, log_entry.subdir, self.subdir_filename))
    log_text = self.render_entry(log_entry)
    for log_file in log_files:
        fileobj = open(log_file, 'a')
        try:
            print >>fileobj, log_text
        finally:
            fileobj.close()
    if (log_entry.is_end() and self._tap_writer.do_tap_report):
        self._tap_writer.record(log_entry, self._indenter.indent, log_files)
    if log_entry.is_start():
        self._indenter.increment()
    elif log_entry.is_end():
        self._indenter.decrement()
