Add command option to write log files.