Uploaded image for project: 'Application Server 7'
  1. Application Server 7
  2. AS7-4839

change-root-log-level command creates config in wrong place ?

XMLWordPrintable

      Starting with the following configuration:

      [standalone@localhost:9999 /] /subsystem=logging/root-logger=ROOT:read-resource                              
      {
          "outcome" => "success",
          "result" => {
              "filter" => undefined,
              "handlers" => [
                  "CONSOLE",
                  "FILE"
              ],
              "level" => undefined
          }
      } 
      

      I attempt to specify the log level using change-root-log-level command:

      [standalone@localhost:9999 /] /subsystem=logging/root-logger=ROOT:change-root-log-level(level="DEBUG")
      {"outcome" => "success"}
      

      However instead of changing the value of level it adds a new root-logger element and sets it there.

      [standalone@localhost:9999 /] /subsystem=logging/root-logger=ROOT:read-resource        
      {
          "outcome" => "success",
          "result" => {
              "filter" => undefined,
              "handlers" => [
                  "CONSOLE",
                  "FILE"
              ],
              "level" => undefined,
              "root-logger" => {"level" => "DEBUG"}
          }
      } 
      

      This configuration isn't reflected in the management console or XML, nor does it have the intended affect on server behaviour.

              jperkins-rhn James Perkins
              dmison_jira Dana Mison (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: