moved call to patchLogger to catch msgs from hooks, updated log file name declaration