Create the logfile directory if necessary. Throw if impossible.