Specifying the log directory results in a NullPointerException - I guess you also want to create logDir when it is not the default?