modified logger for measuring purpose