title: Can the Rails logger be accessed from within a Rack middleware?
body: <p>I'd like to log things from within a middleware that I'm putting into a Rails app, using the app's existing logger. Is there a standard way to do this? Two possibilities that come to mind:</p>
  
  <ol>
  <li>the logger is directly accessible in the rack environment</li>
  <li>the loger can be accessed at app boot time and assigned to the middleware</li>
  </ol>
  
  <p>Searching for solutions involving either of these doesn't come up with much. I haven't fully thought through/experimented to see if the order of operations allows either to be possible.</p>