'Calls the standard formatter, but will indent all of the log messages
by our current indentation level.'

def format(self, record):

    formatted = logging.Formatter.format(self, record)
    formatted = ''.join([(('    ' * get_indentation()) + line) for line in formatted.splitlines(True)])
    return formatted
