Collect stats for log messages