add mkdir for log dir