title: Default Rails Path to Environment Log File
body: <p>I'm creating a rotating logger for my staging and production environment. So I've written the following code:</p>
  
  <pre><code>config.logger = Logger.new(config.log_path, 2 , 'daily')
  </code></pre>
  
  <p>Now my question is how do you get the log_path, can you dynamically link it depending on the current env? My logs are located in log/ (default path I think) and the file is staging.log / production.log depending on te env.</p>
  
  <p>Kind regards</p>