def METHOD_NAME(self, record: logging.LogRecord) -> str:
    if not NO_COLOR and sys.stderr.isatty():
        return self._formatMessageColor(record)
    else:
        return super().METHOD_NAME(record)