title: log select events into a separate file
body: <p>Folks,
  I am working on analytics for my web application. The application runs on Tomcat 6. I would like to take log entries from a certain logger and put them into a log file of their own. These logs will later be picked up for Map/Reduce processing.</p>
  
  <p>These are the steps I have taken so far:</p>
  
  <ul>
  <li>In my Java code, I have created a logger specifically for analytics events: <code>public static final Logger s_analyticsLogger = Logger.getLogger( "com.mm.analytics" );</code></li>
  <li>I log analytics events using this logger: <code>s_analyticsLogger.info( "This is an analytics log message" );</code></li>
  <li>Following Tomcat 6 docs, I created a file <code>myapp/WEB-INF/classes/logging.properties</code> and added the following entries to it:</li>
  </ul>
  
  <p>com.mm.analytics.handlers = org.apache.juli.FileHandler</p>
  
  <p>org.apache.juli.FileHandler.level = FINE</p>
  
  <p>org.apache.juli.FileHandler.directory = ${catalina.base}/logs/mm-analytics-logs</p>
  
  <p>org.apache.juli.FileHandler.prefix = mm-analytics.</p>
  
  <p>When I run with the above, I see no log file prefixed with mm-analytics created in the Tomcat logs folder. I have also tried moving the configuration entries to Tomcat/conf/logging.properties, but to no avail.</p>
  
  <p>Does anyone know if this is a Tomcat documentation bug or am I doing something wrong?</p>
  
  <p>Thanks.</p>
  
  <p>-Raj</p>