Skip to content

Commit

Permalink
[FLINK-36278] Reduce Flink log levels
Browse files Browse the repository at this point in the history
Keep INFO only for connector related logs. This will avoid all the different JM and TM logs that deal with task life-cycles. Exceptional things still bubble up as warnings.
  • Loading branch information
AHeise committed Sep 23, 2024
1 parent ec8d7c2 commit 1b02ce8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,12 @@ appender.testlogger.target = SYSTEM_ERR
appender.testlogger.layout.type = PatternLayout
appender.testlogger.layout.pattern = %-4r [%t] %-5p %c %x - %m%n

# Overwrite the level for all Flink related loggers
logger.flink.name = org.apache.flink
logger.flink.level = OFF # WARN for starting debugging
logger.flinkconnector.name = org.apache.flink.connector
logger.flinkconnector.level = OFF # INFO/DEBUG for starting debugging

# Kafka producer and consumer level
logger.kafka.name = org.apache.kafka
logger.kafka.level = OFF
Expand Down
6 changes: 6 additions & 0 deletions tools/ci/log4j.properties
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,12 @@ appender.file.layout.type = PatternLayout
appender.file.layout.pattern = %d{HH:mm:ss,SSS} [%20t] %-5p %-60c %x - %m%n
appender.file.createOnDemand = true

# Reduce most flink logs except for connector specific loggers
logger.flink.name = org.apache.flink
logger.flink.level = WARN
logger.flinkconnector.name = org.apache.flink.connector
logger.flinkconnector.level = INFO

# Kafka producer and consumer level
logger.kafka.name = org.apache.kafka
logger.kafka.level = OFF
Expand Down

0 comments on commit 1b02ce8

Please sign in to comment.