Fixed the logging hooks for cram_reasoning to use `define-hook'