Allow 'log_output' option in config, refactor piping