throw if log dir not exists