title: wordpress plugin debug output to php-fpm stderr
body: <p>I am running a fedora server with apache-httpd, php-fpm and Wordpress.</p>
  <p>I am a php novice and have spent hours trying to simply get a debug line from a wordpress plugin to appear in /var/log/php-fpm/www.errors.log (or any other logfile that I can 'tail').</p>
  <p>It seems like I should be able to do something in my Wordpress plugin like:</p>
  <pre><code>fwrite(STDERR,&quot;some error&quot;);
  </code></pre>
  <p>I tried WP_DEBUG and WP_DEBUG_LOG in wp-config.php, but I can't find any log that is output.</p>
  <p>Is there some official method of doing simple debugging where I can add 'print' lines to the php and see variables, etc. in a file?</p>