add method to log for StatsLogCollector, and remove Script dependence