[ 
https://issues.apache.org/jira/browse/APEXCORE-670?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16100949#comment-16100949
 ] 

Florian Schmidt edited comment on APEXCORE-670 at 7/25/17 11:38 PM:
--------------------------------------------------------------------

Ah, of course the _target_ needs to be included in there as well. 

In my understanding, your cURL request would change the log level of the 
classes used by the stram? This would differ from setting the log levels in the 
operators, right? Example:
{code}
curl -H "Content-Type: application/json" -X POST \
    -d 
'{"loggers":[{"target":"org.apache.apex.examples.pi.*","logLevel":"TRACE"}]}' \
    
http://apex-sandbox:9090/ws/v2/applications/application_1499808956620_0803/loggers
{code}

In this case, should we use two separate commands for setting the log levels in 
stram / operators?


was (Author: florianschmidt):
Ah, of course the _target_ needs to be included in there as well. 

In my understanding, your cURL request would change the log level of the 
classes used by the stram? This would differ from setting the log levels in the 
operators, right? Example:
{code}
curl -H "Content-Type: application/json" -X POST \
    -d 
'{"loggers":[{"target":"org.apache.apex.examples.pi.*","logLevel":"TRACE"}]}' \
    
http://apex-sandbox:9090/ws/v2/applications/application_1499808956620_0803/loggers
{code}


> CLI should provide command to set log level
> -------------------------------------------
>
>                 Key: APEXCORE-670
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-670
>             Project: Apache Apex Core
>          Issue Type: Improvement
>            Reporter: Thomas Weise
>            Assignee: Florian Schmidt
>              Labels: newbie
>
> Changing the log level at runtime is a useful capability exposed through the 
> AM REST API, the command line should make it available as well.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to