Write log file during update hook.