Prepare log dir