log4j-console.properties 3.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. # This affects logging for both user code and Flink
  21. rootLogger.level = ${env:ROOT_LOG_LEVEL:-INFO}
  22. rootLogger.appenderRef.console.ref = ConsoleAppender
  23. rootLogger.appenderRef.rolling.ref = RollingFileAppender
  24. # Uncomment this if you want to _only_ change Flink's logging
  25. #logger.flink.name = org.apache.flink
  26. #logger.flink.level = INFO
  27. # The following lines keep the log level of common libraries/connectors on
  28. # log level INFO. The root logger does not override this. You have to manually
  29. # change the log levels here.
  30. logger.pekko.name = org.apache.pekko
  31. logger.pekko.level = INFO
  32. logger.kafka.name= org.apache.kafka
  33. logger.kafka.level = INFO
  34. logger.hadoop.name = org.apache.hadoop
  35. logger.hadoop.level = INFO
  36. logger.zookeeper.name = org.apache.zookeeper
  37. logger.zookeeper.level = INFO
  38. logger.shaded_zookeeper.name = org.apache.flink.shaded.zookeeper3
  39. logger.shaded_zookeeper.level = INFO
  40. # Log all infos to the console
  41. appender.console.name = ConsoleAppender
  42. appender.console.type = CONSOLE
  43. appender.console.layout.type = PatternLayout
  44. appender.console.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
  45. appender.console.filter.threshold.type = ThresholdFilter
  46. appender.console.filter.threshold.level = ${sys:console.log.level:-ALL}
  47. # Log all infos in the given rolling file
  48. appender.rolling.name = RollingFileAppender
  49. appender.rolling.type = RollingFile
  50. appender.rolling.append = true
  51. appender.rolling.fileName = ${sys:log.file}
  52. appender.rolling.filePattern = ${sys:log.file}.%i
  53. appender.rolling.layout.type = PatternLayout
  54. appender.rolling.layout.pattern = %d{yyyy-MM-dd HH:mm:ss,SSS} %-5p %-60c %x - %m%n
  55. appender.rolling.policies.type = Policies
  56. appender.rolling.policies.size.type = SizeBasedTriggeringPolicy
  57. appender.rolling.policies.size.size=100MB
  58. appender.rolling.policies.startup.type = OnStartupTriggeringPolicy
  59. appender.rolling.strategy.type = DefaultRolloverStrategy
  60. appender.rolling.strategy.max = ${env:MAX_LOG_FILE_NUMBER:-10}
  61. # Suppress the irrelevant (wrong) warnings from the Netty channel handler
  62. logger.netty.name = org.jboss.netty.channel.DefaultChannelPipeline
  63. logger.netty.level = OFF