(self, record)
return formatted
Calls the standard formatter, but will indent all of the log message
        lines by our current indentation level.
Calls the standard formatter, but will indent all of the log message
        lines by our current indentation level.
Calls the standard formatter but will indent all of the log message lines by our current indentation level .
def format(self, record):
        """
        Calls the standard formatter, but will indent all of the log message
        lines by our current indentation level.
        """
        formatted = super(IndentingFormatter, self).format(record)
        message_start = self.get_message_start(formatted, record.levelno)
        formatted = message_start + formatted

        prefix = ''
        if self.add_timestamp:
            # TODO: Use Formatter.default_time_format after dropping PY2.
            t = self.formatTime(record, "%Y-%m-%dT%H:%M:%S")
            prefix = '%s,%03d ' % (t, record.msecs)
        prefix += " " * get_indentation()
        formatted = "".join([
            prefix + line
            for line in formatted.splitlines(True)
        ])
        return formatted
def format ( self , record ) : formatted = super ( IndentingFormatter , self ) . format ( record ) message_start = self . get_message_start ( formatted , record . levelno ) formatted = message_start + formatted prefix = '' if self . add_timestamp : # TODO: Use Formatter.default_time_format after dropping PY2. t = self . formatTime ( record , "%Y-%m-%dT%H:%M:%S" ) prefix = '%s,%03d ' % ( t , record . msecs ) prefix += " " * get_indentation ( ) formatted = "" . join ( [ prefix + line for line in formatted . splitlines ( True ) ] ) return formatted