def METHOD_NAME(self, record: logging.LogRecord) -> None:
    """
    Write a log record to the stream.
    Parameters
    ----------
    record: logging.LogRecord
        The log record to write.
    """
    color = self._get_color(record.levelno)
    self._set_color(color)
    logging.StreamHandler.METHOD_NAME(self, record)
    self._set_color(self.FOREGROUND_WHITE)