hadoop-yarn-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yeliang Cang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (YARN-7243) Moving logging APIs over to slf4j in hadoop-yarn-server-resourcemanager
Date Mon, 09 Oct 2017 12:58:00 GMT

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

Yeliang Cang commented on YARN-7243:
------------------------------------

I move the below code:
{code:title=TestCapacitySchedulerPerf.java}
     for (Enumeration<?> loggers = LogManager.getCurrentLoggers();
         loggers.hasMoreElements(); )  {
      Logger logger = (Logger) loggers.nextElement();
      logger.setLevel(Level.WARN);
    }
{code}
to GenericTestUtils.java
{code:title=GenericTestUtils.java}
     public static void setCurrentLoggersLogLevel(org.slf4j.event.Level level) {
    for (Enumeration<?> loggers = LogManager.getCurrentLoggers();
         loggers.hasMoreElements(); )  {
      Logger logger = (Logger) loggers.nextElement();
      logger.setLevel(Level.toLevel(level.toString()));
    }
  }
{code}



> Moving logging APIs over to slf4j in hadoop-yarn-server-resourcemanager
> -----------------------------------------------------------------------
>
>                 Key: YARN-7243
>                 URL: https://issues.apache.org/jira/browse/YARN-7243
>             Project: Hadoop YARN
>          Issue Type: Sub-task
>            Reporter: Yeliang Cang
>            Assignee: Yeliang Cang
>         Attachments: YARN-7243.001.patch, YARN-7243.002.patch, YARN-7243.003.patch, YARN-7243.004.patch
>
>




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

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-issues-help@hadoop.apache.org


Mime
View raw message