redirecting errors to Logger