Allow specifying logDir