title: apache2.4.7 not logging "404 Not Found" pages to error.log
body: <p>I've seen questions about how to <strong>not</strong> log 404 errors to the error log, this is the opposite.</p>
  
  <p>For some reason my apache installation does not log 404 errors to my error log (or to my access log for that matter).  I have set the error log properly and see errors going to it, but when I access non-existent pages I simply get my 404 error - the <strong>access</strong> (but not the 404 error) shows up in the access.log, but I don't see anything in the error log (which makes it hard, for example, to debug <em>why</em> some pages aren't showing up).</p>
  
  <p>My apache (2.4.7) conf settings regarding logs (in the order they are set) are:</p>
  
  <pre><code>ErrorLog ${APACHE_LOG_DIR}/error.log
  ErrorLog logs/error_log
  LogLevel warn  # Though I've tried setting this to debug
  LogFormat "%v:%p %h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" vhost_combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %O" common
  LogFormat "%{Referer}i -&gt; %U" referer
  LogFormat "%{User-agent}i" agent
  LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
  LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"" common
  LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
  CustomLog logs/access_log common
  LogFormat "%{HOST}i %h %l %u %t \"%r\" %s %b \"%{User-Agent}i\"" vcommon
  CustomLog logs/access_log vcommon
  </code></pre>
  
  <p>So the only ones that I think are relevant to error log (ignoring overwritten settings) are:</p>
  
  <pre><code>ErrorLog logs/error_log
  LogLevel warn  # Though I've tried setting this to debug
  </code></pre>