added intercept for logger