change mcoagent output to logfile