check defined hook and log dir