[jboss-jira] [JBoss JIRA] (AS7-6664) Unable to turn on/off logging handlers using enable()/disable() in CLI

Brian Stansberry (JIRA) jira-events at lists.jboss.org
Fri Mar 1 21:06:56 EST 2013


Brian Stansberry created AS7-6664:
-------------------------------------

             Summary: Unable to turn on/off logging handlers using enable()/disable() in CLI
                 Key: AS7-6664
                 URL: https://issues.jboss.org/browse/AS7-6664
             Project: Application Server 7
          Issue Type: Bug
          Components: Domain Management, Logging
    Affects Versions: 7.2.0.Alpha1
            Reporter: Brian Stansberry
            Assignee: James Perkins
             Fix For: 8.0.0.Alpha1


Peter Kremens reports:

I am unable to use enable/disable operation in logging handlers.
 
{code}
[standalone at localhost:9999 /] /subsystem=logging/console-handler=CONSOLE:read-resource
{
    "outcome" => "success",
    "result" => {
        "autoflush" => true,
        "enabled" => true,
        ...
    }
}
{code}

Calling disable() won't affect enabled attribute

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

Must use write-attribute instead

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

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list