Add logger for the exceptions