'Update stats tracking for metric and emit log message.'

def stats_log(self, metric, msg, *args, **kwargs):

    level = kwargs.pop('level', logging.DEBUG)
    log_message = (('%s:    ' % metric) + msg)
    self.logger.log(level, log_message, *args, **kwargs)
    self.stats[metric] += 1
