add a logger for statistics purposes