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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • 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"
      ~~~~

              hpehl@redhat.com Harald Pehl
              hpehl@redhat.com Harald Pehl
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: