Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-43

Unable to turn on/off logging handlers using enable()/disable() in CLI

    XMLWordPrintable

Details

    Description

      Peter Kremens reports:

      I am unable to use enable/disable operation in logging handlers.

      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
      {
          "outcome" => "success",
          "result" => {
              "autoflush" => true,
              "enabled" => true,
              ...
          }
      }
      

      Calling disable() won't affect enabled attribute

      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:disable()
      {"outcome" => "success"}
      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
      {
          "outcome" => "success",
          "result" => {
              "autoflush" => true,
              "enabled" => true,
              ...
          }
      }
      

      Must use write-attribute instead

      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE/:write-attribute(name=enabled, value=false)
      {"outcome" => "success"}
      [standalone@localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
      {
          "outcome" => "success",
          "result" => {
              "autoflush" => true,
              "enabled" => false,
              ...
          }
      }
      

      Attachments

        Activity

          People

            jperkins-rhn James Perkins
            bstansbe@redhat.com Brian Stansberry
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: