title: Writing COIN-OR CBC Log File
body: <p>I'm using COIN-OR's CBC solver to solve some numerical optimization problems. I'm structuring the optimization problem in Python via PuLP.</p>
  
  <p>I've noticed that solvers like GUROBI and CPLEX create log files, but I can't seem to figure out how to get CBC to create a log file (as opposed to printing the optimizer's progress to the screen). </p>
  
  <p>Does anybody know of an option in CBC to set a log file? Re-directing all stdout to a file doesn't work for me, since I'm solving a bunch of problems in parallel and want to keep their log files separate.</p>
  
  <p>Here's an example of how I'm calling the solver. This works great and prints progress to the terminal.</p>
  
  <pre><code>prob.solve(pulp.COIN_CMD(msg=1, options=['DivingVectorlength on','DivingSome on']))
  </code></pre>
  
  <p>Here's how I think a solution should be structured (though obviously <em>LogFileName</em> isn't a valid CBC option).</p>
  
  <pre><code>prob.solve(pulp.COIN_CMD(msg=1, options=['DivingVectorlength on', 'DivingSome on', 'LogFileName stats.log']))
  </code></pre>
  
  <p>Any help on this would be greatly appreciated. I've been going through the internet, docs, and the CBC interactive session for hours trying to figure this out.</p>