title: Empty Log-Files in JBoss EAP 6.4.4 (Logging-Profiles)
body: <p>i have 3 applications/wars which will be deployed on one JBoss EAP 6.4.4. and i need seperate log-files for each application. so i tried the following steps <a href="https://docs.jboss.org/author/display/AS72/Logging+Configuration#LoggingConfiguration-LoggingProfiles" rel="nofollow">(as seen in this doku)</a>:  </p>
  
  <p>I. i added logging profiles to the MANIFEST.MF:  </p>
  
  <blockquote>
    <p>\a.war\META-INF\MANIFEST.MF contains "Logging-Profile: aProfile"<br>
    \s.war\META-INF\MANIFEST.MF contains "Logging-Profile: sProfile"<br>
    \t.war\META-INF\MANIFEST.MF contains "Logging-Profile: tProfile"  </p>
  </blockquote>
  
  <p>II. i added the following logging subsystem to the standalone.xml</p>
  
  <pre><code>&lt;subsystem xmlns="urn:jboss:domain:logging:1.5"&gt;
    &lt;console-handler name="CONSOLE"&gt;
      &lt;level name="INFO"/&gt;
      &lt;formatter&gt;
        &lt;named-formatter name="COLOR-PATTERN"/&gt;
      &lt;/formatter&gt;
    &lt;/console-handler&gt;
    &lt;!-- ... --&gt;
    &lt;root-logger&gt;
      &lt;level name="INFO"/&gt;
      &lt;handlers&gt;
        &lt;handler name="CONSOLE"/&gt;
      &lt;/handlers&gt;
    &lt;/root-logger&gt;
    &lt;logging-profiles&gt;
      &lt;logging-profile name="aProfile"&gt;
        &lt;periodic-rotating-file-handler name="FILE" autoflush="true"&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;formatter&gt;
            &lt;pattern-formatter pattern="%d %-5p [%c] %m  (%X{LogContext})%n"/&gt;
          &lt;/formatter&gt;
          &lt;file relative-to="jboss.server.log.dir" path="a.log"/&gt;
          &lt;suffix value=".yyyy-MM-dd"/&gt;
          &lt;append value="true"/&gt;
        &lt;/periodic-rotating-file-handler&gt;
        &lt;root-logger&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;handlers&gt;
            &lt;handler name="FILE"/&gt;
          &lt;/handlers&gt;
        &lt;/root-logger&gt;
      &lt;/logging-profile&gt;
      &lt;logging-profile name="sProfile"&gt;
        &lt;periodic-rotating-file-handler name="FILE" autoflush="true"&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;formatter&gt;
            &lt;pattern-formatter pattern="%d %-5p [%c] %m  (%X{LogContext})%n"/&gt;
          &lt;/formatter&gt;
          &lt;file relative-to="jboss.server.log.dir" path="s.log"/&gt;
          &lt;suffix value=".yyyy-MM-dd"/&gt;
          &lt;append value="true"/&gt;
        &lt;/periodic-rotating-file-handler&gt;
        &lt;root-logger&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;handlers&gt;
            &lt;handler name="FILE"/&gt;
          &lt;/handlers&gt;
        &lt;/root-logger&gt;
      &lt;/logging-profile&gt;
      &lt;logging-profile name="tProfile"&gt;
        &lt;periodic-rotating-file-handler name="FILE" autoflush="true"&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;formatter&gt;
            &lt;pattern-formatter pattern="%d %-5p [%c] %m  (%X{LogContext})%n"/&gt;
          &lt;/formatter&gt;
          &lt;file relative-to="jboss.server.log.dir" path="t.log"/&gt;
          &lt;suffix value=".yyyy-MM-dd"/&gt;
          &lt;append value="true"/&gt;
        &lt;/periodic-rotating-file-handler&gt;
        &lt;root-logger&gt;
          &lt;level name="DEBUG"/&gt;
          &lt;handlers&gt;
            &lt;handler name="FILE"/&gt;
          &lt;/handlers&gt;
        &lt;/root-logger&gt;
      &lt;/logging-profile&gt;
    &lt;/logging-profiles&gt;
  &lt;/subsystem&gt;
  </code></pre>
  
  <p>=> all 3 log-files are created on startup, but only 't.log' and the console show the log-entries - 'a.log' and 's.log' remain empty. i tried several modifications (e.g. changed Logging-Profile of s.war to tProfile etc.), in the end only 't.log' works as expected.</p>
  
  <p>=> what am i doing wrong?</p>
  
  <p>(note: a.war, s.war and t.war use some other internal projects/jars with similar package names, so logger categories are probably no option here)</p>