Add support for log/output files.