Skip to content
This repository has been archived by the owner on Sep 2, 2022. It is now read-only.

Default log4j.properties file not compatible with log4j2 #472

Open
mlegore opened this issue Sep 24, 2021 · 0 comments
Open

Default log4j.properties file not compatible with log4j2 #472

mlegore opened this issue Sep 24, 2021 · 0 comments

Comments

@mlegore
Copy link

mlegore commented Sep 24, 2021

Since flink v1.11, log4j2 is the default logger setup for flink, out of the box, the log4j.properties file that is put into the container from a configmap is incompatible with log4j2, it does not set a rootlogger, which causes the logger to fall back to console logging with log level ERROR.

The log config that is added by default is:

log4j.rootLogger=INFO, console
log4j.logger.akka=INFO
log4j.logger.org.apache.kafka=INFO
log4j.logger.org.apache.hadoop=INFO
log4j.logger.org.apache.zookeeper=INFO
log4j.appender.console=org.apache.log4j.ConsoleAppender
log4j.appender.console.layout=org.apache.log4j.PatternLayout
log4j.appender.console.layout.ConversionPattern=%d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
log4j.logger.org.apache.flink.shaded.akka.org.jboss.netty.channel.DefaultChannelPipeline=ERROR, console
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant