option to append log to file, rather than using stdout