self.args = args
self.kwargs = kwargs

def __str__(self):
    return self.fmt.format(*self.args, **self.kwargs)
__ = BraceMessage
logging.info(__('date={}', date))
Python: Logging TypeError: not all arguments converted during string formatting