1 Reply Latest reply on May 9, 2014 12:35 PM by James Perkins

    Logging on Logging-profile and ROOT logger

    Marco Simões Newbie

      Hi guys,

       

      I configure a logging-profile on my JBoss EAP 6.1.1 to logger to an specific deployed file, bellow the setting:

       

      <subsystem xmlns="urn:jboss:domain:logging:1.2">
      ........
      <logging-profiles>
                      <logging-profile name="myapp">
                          <file-handler name="myHandler">
                              <level name="INFO"/>
                              <file relative-to="jboss.server.log.dir" path=myapplog"/>
                          </file-handler>
                          <root-logger>
                              <handlers>
                                  <handler name="myHandler"/>
                              </handlers>
                          </root-logger>
                      </logging-profile>
          </logging-profiles>
      </subsystem>
      

       

      And i need to configure on manifest.mf to take effect, bellow the setting:

       

      Manifest-Version: 1.0
      Class-Path:
      Logging-Profile: myapp
      

       

       

      With this configuration i get in myapp.log all logs for my application, but i would like that logs were to the server.log also.

       

      How can i generate logs on myapp.log and server.log ?

       

      Thanks.