title: How to log messages to multiple log files in Liberty Profile Server?
body: <p>I want to log messages from different applications of Liberty Profile Server to different log files. For example, suppose there are two application like App_1 and App_2, then what I want is log message from App_1 should go to app1_message.log and messages from App_2 should go to app2_messages.log.</p>
  
  <p>I have tried to achieve this by specifying multiple  tags in server.xml as below but it did not work:-</p>
  
  <pre><code>&lt;logging consoleLogLevel="INFO" traceFormat="ADVANCED" traceSpecification="*=all" /&gt;
  
  &lt;logging traceSpecification="*=audit:com.myco.mypackage.*=debug" messageFileName="app1_messages.log"/&gt;
  </code></pre>
  
  <p>Another way to achieve this is through code by creating FileHandler object as suggested by this link:<a href="https://stackoverflow.com/questions/14506902/multiple-apps-in-glassfish-jul-logging-to-different-log-files">Multiple apps in glassfish JUL logging to different log files?</a></p>
  
  <p>But we want to do this purely through configuration file, i.e. through logging.properties file. That is the challenge.</p>
  
  <p>I love Log4J but sadly that is not an option. We are stuck with java.util.logging. Any suggestions/pointers will be helpful.</p>