title: How to make each unicorn worker of my Rails application log to a different file?
body: <p>How can I make each unicorn worker of my Rails application writting in a different log file ?</p>
  
  <p>The why : problem of mixed log files...
  In its default configuration, Rails will write its log messages to a single log file: <code>log/&lt;environment&gt;.log</code>.</p>
  
  <p>Unicorn workers will write to the same log file at once, the messages can get mixed up. This is a problem when request-log-analyzer parses a log file. An example:</p>
  
  <pre><code>Processing Controller1#action1 ...
  Processing Controller2#action2 ...
  Completed in 100ms...
  Completed in 567ms...
  </code></pre>
  
  <p>In this example, what action was completed in 100ms, and what action in 567 ms? We can never be sure.</p>