azagrebin commented on a change in pull request #11073: [FLINK-15672][build] 
Migrate to log4j2 
URL: https://github.com/apache/flink/pull/11073#discussion_r381197620
 
 

 ##########
 File path: flink-dist/src/main/flink-bin/conf/log4j-yarn-session.properties
 ##########
 @@ -16,16 +16,20 @@
 # limitations under the License.
 
################################################################################
 
-log4j.rootLogger=INFO, stdout
+rootLogger.level = INFO
+rootLogger.appenderRef.console.ref = ConsoleAppender
 
-# Log all infos in the given file
-log4j.appender.stdout=org.apache.log4j.ConsoleAppender
-log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
-log4j.appender.stdout.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} 
%-5p %-60c %x - %m%n
+appender.console.name = ConsoleAppender
+appender.console.type = CONSOLE
+appender.console.layout.type = PatternLayout
+appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - 
%m%n
 
-# suppress the irrelevant (wrong) warnings from the netty channel handler
-log4j.logger.org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline=ERROR,
 stdout
-log4j.logger.org.apache.zookeeper=WARN, stdout
-log4j.logger.org.apache.flink.shaded.org.apache.curator.framework=WARN, stdout
-log4j.logger.org.apache.flink.runtime.util.ZooKeeperUtils=WARN, stdout
-log4j.logger.org.apache.flink.runtime.leaderretrieval.ZooKeeperLeaderRetrievalService=WARN,
 stdout
+# Suppress the irrelevant (wrong) warnings from the Netty channel handler
+logger.netty.name = 
org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline
+logger.netty.level = OFFlog4j.logger.org.apache.zookeeper=WARN, stdout
 
 Review comment:
   ```suggestion
   logger.netty.level = ERROR
   ```

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to