]
RH Bugzilla Integration commented on AS7-6664:
----------------------------------------------
Paul Gier <pgier(a)redhat.com> changed the Status of [bug
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@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@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,
...
}
}
{code}
Must use write-attribute instead
{code}
[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,
...
}
}
{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: