def get_log_value(self):
        """Gets value for logging according to the log strategy."""
        if self.log_strategy == 'CURRENT':
            return self.val
        if self.log_strategy == 'AVERAGE':
            return self.avg
        if self.log_strategy == 'SUM':
            return self.sum
        raise NotImplementedError(f'Log strategy `{self.log_strategy}` is not '
                                  f'implemented!')
Gets value for logging according to the log strategy.
runners/running_stats.py