[ 
https://issues.apache.org/jira/browse/HBASE-19577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Duo Zhang updated HBASE-19577:
------------------------------
    Hadoop Flags: Incompatible change,Reviewed  (was: Incompatible change)
    Release Note: 
Use log4j2 instead of log4j for logging.
Exclude log4j dependency from hbase and transitive dependencies, use 
log4j-1.2-api as test dependency for bridging as hadoop still need log4j for 
some reasons. Copy FileAppender implementation in hbase-logging as the 
ContainerLogAppender for YARN NodeManager extends it. Notice that this class 
and log4j-1.2-api jar will not be shipped in the assembly tarball as they are 
not required when starting HBase cluster.
All log4j.properties files have been replaced by log4j2.xml.
For log4j2, there is no 'log4j.rootLogger' config, so we need to config level 
and appender separately, the system properties are now 
'hbase.root.logger.level' and 'hbase.root.logger.appender', for security 
loggers they are 'hbase.security.logger.level' and 
'hbase.security.logger.appender'. But for setting them from command line, you 
could still use something like 'HBASE_ROOT_LOGGER=INFO,console' as we will 
split it and set level and appender separately.

> Use log4j2 instead of log4j for logging
> ---------------------------------------
>
>                 Key: HBASE-19577
>                 URL: https://issues.apache.org/jira/browse/HBASE-19577
>             Project: HBase
>          Issue Type: Sub-task
>          Components: logging
>            Reporter: Michael Stack
>            Assignee: Duo Zhang
>            Priority: Major
>
> See HBASE-10092 for discussion. We have inserted slf4j as our frontend. Need 
> to swap out the 5-year-old log4j1.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to