make sure log dir existence.