Log hooking in separate file