Changed logger to log date and time.