[jboss-jira] [JBoss JIRA] Issue Comment Edited: (AS7-1350) Add management operations to assign/unassign handlers from loggers and async handlers.
Stan Silvert (JIRA)
jira-events at lists.jboss.org
Wed Jul 27 22:08:23 EDT 2011
[ https://issues.jboss.org/browse/AS7-1350?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12617179#comment-12617179 ]
Stan Silvert edited comment on AS7-1350 at 7/27/11 10:07 PM:
-------------------------------------------------------------
That's an easy change. Just need to rename the commands.
But for root logger, it does make things very confusing. If you are at subsystem=logging, this is how it would look from CLI:
{noformat}[standalone at localhost:9999 subsystem=logging] :read-resource
{
"outcome" => "success",
"result" => {
"async-handler" => undefined,
"file-handler" => undefined,
"root-logger" => {
"level" => "INFO",
"handlers" => [
"CONSOLE",
"FILE"
]
},
"size-rotating-file-handler" => undefined,
"console-handler" => {"CONSOLE" => undefined},
"logger" => {
"com.arjuna" => undefined,
"org.apache.tomcat.util.modeler" => undefined,
"sun.rmi" => undefined
},
"periodic-rotating-file-handler" => {"FILE" => undefined}
}
}
[standalone at localhost:9999 subsystem=logging] :
add change-root-log-level read-attribute read-children-names read-children-resources
read-children-types read-operation-description read-operation-names read-resource read-resource-description
remove-root-logger add-handler remove-handler set-root-logger validate-address
write-attribute{noformat}
So from there, it looks like "add-handler" and "remove-handler" mean you want to create or remove a handler. But it really means assign or unassign a handler to/from the root logger.
was (Author: ssilvert):
That's an easy change. Just need to rename the commands.
But for root logger, it does make things very confusing. If you are at subsystem=logging, this is how it would look from CLI:
[standalone at localhost:9999 subsystem=logging] :read-resource
{
"outcome" => "success",
"result" => {
"async-handler" => undefined,
"file-handler" => undefined,
"root-logger" => {
"level" => "INFO",
"handlers" => [
"CONSOLE",
"FILE"
]
},
"size-rotating-file-handler" => undefined,
"console-handler" => {"CONSOLE" => undefined},
"logger" => {
"com.arjuna" => undefined,
"org.apache.tomcat.util.modeler" => undefined,
"sun.rmi" => undefined
},
"periodic-rotating-file-handler" => {"FILE" => undefined}
}
}
[standalone at localhost:9999 subsystem=logging] :
add change-root-log-level read-attribute read-children-names read-children-resources
read-children-types read-operation-description read-operation-names read-resource read-resource-description
remove-root-logger add-handler remove-handler set-root-logger validate-address
write-attribute
So from there, it looks like "add-handler" and "remove-handler" mean you want to create or remove a handler. But it really means assign or unassign a handler to/from the root logger.
> Add management operations to assign/unassign handlers from loggers and async handlers.
> --------------------------------------------------------------------------------------
>
> Key: AS7-1350
> URL: https://issues.jboss.org/browse/AS7-1350
> Project: Application Server 7
> Issue Type: Feature Request
> Affects Versions: 7.0.0.Final
> Reporter: Stan Silvert
> Assignee: Stan Silvert
> Fix For: 7.1.0.Alpha1
>
>
> Proposed new management operations:
> For Async Handler:
> assign-subhandler
> unassign-subhandler
> For Root Logger:
> root-logger-assign-handler
> root-logger-unassign-handler
> For other Loggers:
> assign-handler
> unassign-handler
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list