def merge_stats(stats_list):
  def generate(field):
    for stats in stats_list:
      for stat in getattr(stats, field):
        yield stat
  return Stats(files=tuple(generate('files')),
               dirs=tuple(generate('dirs')),
               links=tuple(generate('links')))
Provides a log_watcher object that monitors can use to add/remove log files
dataset/ETHPy150Open pantsbuild/pants/src/python/pants/engine/exp/fs.py/merge_stats--crossover with--dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/builtin_monitors/docker_monitor.py/DockerMonitor.set_log_watcher