Fixes #7749 - allow using logger in log_halt helper