log4j-cli.properties 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. ################################################################################
  2. # Licensed to the Apache Software Foundation (ASF) under one
  3. # or more contributor license agreements. See the NOTICE file
  4. # distributed with this work for additional information
  5. # regarding copyright ownership. The ASF licenses this file
  6. # to you under the Apache License, Version 2.0 (the
  7. # "License"); you may not use this file except in compliance
  8. # with the License. You may obtain a copy of the License at
  9. #
  10. # http://www.apache.org/licenses/LICENSE-2.0
  11. #
  12. # Unless required by applicable law or agreed to in writing, software
  13. # distributed under the License is distributed on an "AS IS" BASIS,
  14. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  15. # See the License for the specific language governing permissions and
  16. # limitations under the License.
  17. ################################################################################
  18. # Allows this configuration to be modified at runtime. The file will be checked every 30 seconds.
  19. monitorInterval=30
  20. rootLogger.level = ${env:ROOT_LOG_LEVEL:-INFO}
  21. rootLogger.appenderRef.file.ref = FileAppender
  22. # Log all infos in the given file
  23. appender.file.name = FileAppender
  24. appender.file.type = FILE
  25. appender.file.append = false
  26. appender.file.fileName = ${sys:log.file}
  27. appender.file.layout.type = PatternLayout
  28. appender.file.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
  29. # Log output from org.apache.flink.yarn to the console. This is used by the
  30. # CliFrontend class when using a per-job YARN cluster.
  31. logger.yarn.name = org.apache.flink.yarn
  32. logger.yarn.level = INFO
  33. logger.yarn.appenderRef.console.ref = ConsoleAppender
  34. logger.yarncli.name = org.apache.flink.yarn.cli.FlinkYarnSessionCli
  35. logger.yarncli.level = INFO
  36. logger.yarncli.appenderRef.console.ref = ConsoleAppender
  37. logger.hadoop.name = org.apache.hadoop
  38. logger.hadoop.level = INFO
  39. logger.hadoop.appenderRef.console.ref = ConsoleAppender
  40. # Make sure hive logs go to the file.
  41. logger.hive.name = org.apache.hadoop.hive
  42. logger.hive.level = INFO
  43. logger.hive.additivity = false
  44. logger.hive.appenderRef.file.ref = FileAppender
  45. # Log output from org.apache.flink.kubernetes to the console.
  46. logger.kubernetes.name = org.apache.flink.kubernetes
  47. logger.kubernetes.level = INFO
  48. logger.kubernetes.appenderRef.console.ref = ConsoleAppender
  49. appender.console.name = ConsoleAppender
  50. appender.console.type = CONSOLE
  51. appender.console.layout.type = PatternLayout
  52. appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
  53. # suppress the warning that hadoop native libraries are not loaded (irrelevant for the client)
  54. logger.hadoopnative.name = org.apache.hadoop.util.NativeCodeLoader
  55. logger.hadoopnative.level = OFF
  56. # Suppress the irrelevant (wrong) warnings from the Netty channel handler
  57. logger.netty.name = org.jboss.netty.channel.DefaultChannelPipeline
  58. logger.netty.level = OFF