You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Akira Ajisaka (JIRA)" <ji...@apache.org> on 2017/07/03 05:11:00 UTC

[jira] [Commented] (HADOOP-14587) Use GenericTestUtils.setLogLevel when available in hadoop-common

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

Akira Ajisaka commented on HADOOP-14587:
----------------------------------------

bq. I found org.slf4j.LoggerFactory.getLogger(Logger.ROOT_LOGGER_NAME) is not equivalent to org.apache.log4j.Logger.getRootLogger().
You are right. If there is a logger named "ROOT", LoggerFactory.getLogger gets the logger instead of root logger. I'm +1 for creating a helper method in GenericTestUtils and avoid using {{org.slf4j.LoggerFactory.getLogger("org")}} as workaround.

> Use GenericTestUtils.setLogLevel when available in hadoop-common
> ----------------------------------------------------------------
>
>                 Key: HADOOP-14587
>                 URL: https://issues.apache.org/jira/browse/HADOOP-14587
>             Project: Hadoop Common
>          Issue Type: Sub-task
>            Reporter: Wenxin He
>            Assignee: Wenxin He
>         Attachments: HADOOP-14587.001.patch
>
>
> Based on Brahma's comment in HADOOP-14296, it's better to use GenericTestUtils.setLogLevel as possible to make the migration easier.
> Based on Akira Ajisaka's comment in HADOOP-14549, create a separate jira for hadoop-common change.



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

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