Fix logger example for HOOKS