def METHOD_NAME(self, record):
    if not IS_TTY:
        return super(CliFormatter, self).METHOD_NAME(record)
    record.msg = format_multiline(record.msg)
    record.msg = ' '.join((self._prefix(record), record.msg))
    record.args = tuple(a if isinstance(a, NO_CAST) else safe_unicode(a)
                        for a in record.args)
    return super(CliFormatter, self).METHOD_NAME(record)