Option 'log' to write app terminal output to a file