take optional log dir path