hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-14587) Use GenericTestUtils.setLogLevel when available in hadoop-common
Date Mon, 03 Jul 2017 05:11:00 GMT

    [ 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


Mime
View raw message