title: Setting process.stdout to a file per node.js core cluster worker
body: <p>I'm trying to use node core's cluster feature.</p>
  
  <p>I would like the <code>stdout</code> and <code>stderr</code> streams to output to a file, one for each worker id.</p>
  
  <p>Something much like the following:</p>
  
  <pre><code>var fs          = require('fs'), 
      env         = process.env,
      workerId    = env.NODE_WORKER_ID || env.NODE_UNIQUE_ID;
  
  process.stdout =  fs.createWriteStream(__dirname + '/app#' + workerId + '.log', {
      encoding: 'utf8'
  });
  </code></pre>
  
  <p>Unfortunately, it does not seem to rewrite process.stdout like this.</p>
  
  <p>Is there a way to achieve this, or should this be done differently? Currently when I run my cluster I am getting all output from all processes in one console, which is extremely messy.</p>