Remove square brackets and fix log dir