Uploaded image for project: 'HAL'
  1. HAL
  2. HAL-1628

Not able to view log files in admin console if its created via logging-profile

XMLWordPrintable

    • 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:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: