log4j.properties 2.6 KB

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