'kwargs:
"cached" (boolean) indicates if result was from cache'

def log(self, msg, *args, **kwargs):

    log_indent = ('    ' * 4)
    if True:
        if args:
            s = [(msg % args)]
        else:
            s = [msg]
        if kwargs.get('cached'):
            s.append('    (cached)')
        self.info('%s', ''.join(s))
    else:
        self._log.append(msg, args, kwargs)
