Redirect stdout&err to file