create logfile path if it doesn't exist

Resolves #8957