String interpolation would be nicer here. Up to you but wanted to make the note:
`s"Log path provided is not a valid directory: $logDir" `