def METHOD_NAME(self, record):
    if self._colorize:
        record = copy.copy(record)
        level = record.levelname
        level_style = getattr(self.__styles, level.lower(),
                              self.__styles.default)
        record.levelname = level_style.apply(level)
        record.process = self.__styles.pid.apply(str(record.process))
        record.message = self.__styles.message.apply(record.getMessage())
        record.name = self.__styles.name.apply(record.name)
    return super().METHOD_NAME(record)