Add logging to hook scripts
Append to logfile