added stats for log