original_docstring: Rework the output of a record to better display multi-line messages.
docstring: Rework the output of a record to better display multi-line messages.
docstring_tokens: Rework the output of a record to better display multi - line messages .
code: def format(self, record):
          """Rework the output of a record to better display multi-line messages."""
  
          # Get the custom level name, if any.
          record.__dict__['custom_level_name'] = self._get_level_name(record.levelname)
  
          # Squash and truncate multi-line messages.
          message = record.msg.replace("\n", " ")
          record.msg = message
  
          # Back to regularly scheduled programming.
          return super().format(record)
code_tokens: def format ( self , record ) : record . __dict__ [ 'custom_level_name' ] = self . _get_level_name ( record . levelname ) message = record . msg . replace ( "\n" , " " ) record . msg = message return super ( ) . format ( record )
short_docstring: Rework the output of a record to better display multi-line messages.
short_docstring_tokens: Rework the output of a record to better display multi - line messages .
comment: """Rework the output of a record to better display multi-line messages."""$SEP$# Get the custom level name, if any.$SEP$# Squash and truncate multi-line messages.$SEP$# Back to regularly scheduled programming.