apurtell commented on a change in pull request #4096:
URL: https://github.com/apache/hbase/pull/4096#discussion_r801018053



##########
File path: conf/log4j2.properties
##########
@@ -0,0 +1,135 @@
+#/**

Review comment:
       Why can't we continue to use the existing properties file that ships in 
HEAD of branch-2? It is because even with the Log4J 1 compatibility stuff we 
still can't make it compatible with the log4j1 properties files? 
   
   For operational compatibility in minor releases, after users upgrade, their 
existing logging configuration should still work. It's fine to recommend that 
they make changes, like a switch to the XML format, to gain access to 
improvements, but it would appear log4j has decided to make arbitrary changes 
that break existing configurations still, so logging wouldn't work if the user 
doesn't port. 
   
   Here are the first few lines from log4j.properties in branch-2. 
   
       # Define some default values that can be overridden by system properties
       hbase.root.logger=INFO,console
       hbase.security.logger=INFO,console
       hbase.log.dir=.
       hbase.log.file=hbase.log
       hbase.log.level=INFO
       # Define the root logger to the system property "hbase.root.logger".
       log4j.rootLogger=${hbase.root.logger}
       # Logging Threshold
       log4j.threshold=ALL
       #
       # Daily Rolling File Appender
       #
       log4j.appender.DRFA=org.apache.log4j.DailyRollingFileAppender
       log4j.appender.DRFA.File=${hbase.log.dir}/${hbase.log.file}
   
   It looks like the new properties file format drops the "log4j" prefix? Can 
we keep it? 
   
   Or, we could implement logic in the launch script that looks at the user's 
existing log4j properties file and rewrites it, and uses the rewritten version, 
if it detects this? 




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to