Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-17469

[GSS](7.2.z) Not able to view log files in admin console if its created via logging-profile

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.2.5.CR1, 7.2.5.GA
    • 7.2.2.GA
    • Web Console
    • None
    • -
    • Hide

      Create logging-profile in logging subsystem, like as:

      <logging-profiles>
         <logging-profile name="LoggingProfile1">
            <periodic-rotating-file-handler name="Test" autoflush="true">
               <formatter>
                  <named-formatter name="PATTERN" />
               </formatter>
               <file relative-to="jboss.server.log.dir" path="application.log" />
               <suffix value=".yyyy-MM-dd" />
               <append value="true" />
            </periodic-rotating-file-handler>
            <root-logger>
               <handlers>
                  <handler name="Test" />
               </handlers>
            </root-logger>
            <formatter name="PATTERN">
               <pattern-formatter pattern="%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n" />
            </formatter>
         </logging-profile>
      </logging-profiles>
      

      2. Deploy attached application, and try to check application.log in admin console.

      Show
      Create logging-profile in logging subsystem, like as: <logging-profiles> <logging-profile name= "LoggingProfile1" > <periodic-rotating-file-handler name= "Test" autoflush= " true " > <formatter> <named-formatter name= "PATTERN" /> </formatter> <file relative-to= "jboss.server.log.dir" path= "application.log" /> <suffix value= ".yyyy-MM-dd" /> <append value= " true " /> </periodic-rotating-file-handler> <root-logger> <handlers> <handler name= "Test" /> </handlers> </root-logger> <formatter name= "PATTERN" > <pattern-formatter pattern= "%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%e%n" /> </formatter> </logging-profile> </logging-profiles> 2. Deploy attached application, and try to check application.log in admin console.

      Log files created via logging-profile in EAP 7.2 release are not able to view in admin console. It failed with below error:

      ~~~~
      WFLYCTL0216: Management resource '[
      (\"subsystem\" => \"logging\"),
      (\"log-file\" => \"application.log\")
      ]' not found"
      ~~~~

              istudens@redhat.com Ivo Studensky
              rhn-support-abhumbe Abhijit Humbe
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: