code: def format(self, record, *args, **kwargs):
          
          return logging.Formatter.format(
              self, record, *args, **kwargs).replace('\n', '\n' + ' ' * 8)
docs: Format a message in the log
  
          Act like the normal format, but indent anything that is a
          newline within the message.