You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-issues@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2017/10/04 06:15:01 UTC

[jira] [Commented] (YARN-7243) Moving logging APIs over to slf4j in hadoop-yarn-server-resourcemanager

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

Akira Ajisaka commented on YARN-7243:
-------------------------------------

Thanks [~Cyl] for the work! The usages of LogManager in tests can be replaced as follows:
{code}
+    GenericTestUtils.setRootLogLevel(Level.DEBUG);
-    org.apache.log4j.Logger rootLogger = LogManager.getRootLogger();
-    rootLogger.setLevel(Level.DEBUG);
{code}
In FairSchedulerEventLog.java, I'm okay with leave it unchanged because this class is strongly depends on Log4J1 implementation. We need to remove or update this when updating from Log4J1 to Log4J2.

> 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
>
>




--
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