You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@apex.apache.org by "Vlad Rozov (JIRA)" <ji...@apache.org> on 2016/10/24 22:43:58 UTC

[jira] [Comment Edited] (APEXCORE-564) We should be able to remove loggers level settings

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

Vlad Rozov edited comment on APEXCORE-564 at 10/24/16 10:43 PM:
----------------------------------------------------------------

No, it does not. Setting log level to null in com.datatorrent.stram.util.LoggerUtil does not reset log level to the original level, it will be set to parent's level. For example, if log4j.properties has root logger set to ERROR and com.datatorrent set to INFO, applying "com.datatorrent.\*:DEBUG" pattern will set log level for all com.datatorrent.* loggers to debug. Applying "com.datatorrent.\*:null" pattern does not reset level to INFO as expected, it will reset it to the root level that is ERROR.




was (Author: vrozov):
No, it does not. Setting log level to null in com.datatorrent.stram.util.LoggerUtil does not reset log level to the original level, it will be set to parent's level. For example, if log4j.properties has root logger set to ERROR and com.datatorrent set to INFO, applying "com.datatorrent.*:DEBUG" pattern will set log level for all com.datatorrent.* loggers to debug. Applying "com.datatorrent.*:null" pattern does not reset level to INFO as expected, it will reset it to the root level that is ERROR.



> We should be able to remove loggers level settings
> --------------------------------------------------
>
>                 Key: APEXCORE-564
>                 URL: https://issues.apache.org/jira/browse/APEXCORE-564
>             Project: Apache Apex Core
>          Issue Type: New Feature
>            Reporter: Priyanka Gugale
>            Assignee: Priyanka Gugale
>            Priority: Minor
>   Original Estimate: 48h
>  Remaining Estimate: 48h
>
> StramWebServices has api to setLoggersLevel, but there is not way to remove the already set loggers level. There should be an api to remove loggers level which was set earlier.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)