code: def format(self, record: logging.LogRecord) -> str:
          
          if platform.system() != 'Linux':  # Avoid funny logs on Windows & MacOS
              return super().format(record)
  
          record.msg = (
              self.STYLE[record.levelname] + record.msg + self.STYLE['END'])
          record.levelname = (
              self.STYLE['LEVEL'] + record.levelname + self.STYLE['END'])
          return super().format(record)
docs: Format log records to produce colored messages.
  
          :param record: log record
          :return: log message