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

James Perkins (JIRA) jira-events at lists.jboss.org
Mon Mar 11 14:56:41 EDT 2013


    [ https://issues.jboss.org/browse/AS7-6664?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12760361#comment-12760361 ] 

James Perkins commented on AS7-6664:
------------------------------------

Closed PR to incorporate into a better change set. 
                
> 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: EAP 6.1.0.Alpha (7.2.0.Final)
>            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