Add loger to exceptions