Modify the logged output of hook file