title: Have nginx access_log and error_log log to STDOUT and STDERR of master process
body: <p>Is there a way to have the master process log to STDOUT STDERR instead of to a file? </p>
  
  <p>It seems that you can only pass a filepath to the access_log directive:</p>
  
  <pre><code>access_log  /var/log/nginx/access.log
  </code></pre>
  
  <p>And the same goes for error_log:</p>
  
  <pre><code>error_log /var/log/nginx/error.log
  </code></pre>
  
  <p>I understand that this simply may not be a feature of nginx, I'd be interested in a concise solution that uses tail, for example. It is preferable though that it comes from the master process though because I am running nginx in the foreground. </p>