

def format_and_encode(self, record):
    output = super().format_and_encode(self)
    (color, attrs) = self._log_colors[record.level]
    return (colored(output, color, attrs=attrs) if color else output)

dataset/ETHPy150Open box/ClusterRunner/app/util/log.py _ColorizingStreamHandler.format_and_encode/VarMisuse@20/25 `record`->`self`