Log solver results

Only Ipopt output file is supported for now. This should make debugging easier when solver internal errors happen.