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

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

In the below code:
{code:title=FairSchedulerEventLog.java}
      synchronized void log(String eventType, Object... params) {
    try {
      if (logDisabled)
        return;
      StringBuffer buffer = new StringBuffer();
      buffer.append(eventType);
      for (Object param: params) {
        buffer.append("\t");
        buffer.append(param);
      }
      String message = buffer.toString();
      Logger logger = Logger.getLogger(getClass());
      appender.append(new LoggingEvent("", logger, Level.INFO, message, null));
    } catch (Exception e) {
      LOG.error("Failed to append to fair scheduler event log", e);
      logDisabled = true;
    }
  }
{code}
The variable "logger"  in method LoggingEvent is an object of 
org.apache.log4j.Category. I don't know how to deal with it, so I just leave it 
unchanged.

Also, org.apache.log4j.LogManager is used in testRM.java and many other UT 
files. I leave them unchanged, too! 

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




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

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

Reply via email to