'Render the status log entry into a text string.
:returns: A text string suitable for writing into a status log file.'

def render(self):

    subdir = (self.subdir or self.RENDERED_NONE_VALUE)
    operation = (self.operation or self.RENDERED_NONE_VALUE)
    extra_fields = [('%s=%s' % field) for field in self.fields.iteritems()]
    line_items = [self.status_code, subdir, operation]
    line_items += (extra_fields + [self.message])
    first_line = ' DCTB '.join(line_items)
    all_lines = [first_line]
    all_lines += [('        ' + line) for line in self.extra_message_lines]
    return '\n'.join(all_lines)
