Add support for storing the log file in a directory

XXX not exposed via the CLI