def METHOD_NAME(self, mode, *args, **kwargs):
    for arg in args:
        self.log_data.append(arg)
    for key, val in list(kwargs.items()):
        self.log_data.append("[%s] %r:%r" % (mode, key, val))