title: Why can't I get Apache's CustomLog directive to work?
body: <p>I'm trying to use Apache's <code>CustomLog</code> directive to create some custom log files, but can't get it working. Here is the configuration I'm using for the custom logs:</p>
  
  <pre><code>LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common
  LogFormat "%{Referer}i -&gt; %U" referer
  LogFormat "%{User-agent}i" agent
  
  CustomLog /var/log/apache2/jb_common common
  CustomLog /var/log/apache2/jb_referer referer
  </code></pre>
  
  <p>Apache creates both of these custom log files on startup, so it definitely sees the <code>CustomLog</code> directives, but it never writes anything to these files; however, the default access log (<code>access.log</code>) is being written to.</p>
  
  <p>Any ideas? I'm running Apache 2.2 on Ubuntu 8.10.</p>