flink log配置目录下文件有

  • log4j-cli.properties
  • log4j-console.properties
  • log4j-kubernetes.properties
  • log4j.properties
  • log4j-yarn-session.properties
  • logback-console.xml
  • logback.xml
  • logback-yarn.xml

log4j-cli.properties 用于命令执行产生的日志

log4j-yarn-session.properties:用于yarn session模式产生日志

log4j.properties:无论是standalone还是yarn模式,都是这个配置

这三个log4j.*properties都对应三个logback.*xml,如果要使用logback,需要删除对应的log4j配置文件即可

  • log4j-cli.properties -> logback-console.xml
  • log4j-yarn-session.properties -> logback-yarn.xml
  • log4j.properties -> logback.xml