log4j.properties 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  1. # Licensed to the Apache Software Foundation (ASF) under one or more
  2. # contributor license agreements. See the NOTICE file distributed with
  3. # this work for additional information regarding copyright ownership.
  4. # The ASF licenses this file to You under the Apache License, Version 2.0
  5. # (the "License"); you may not use this file except in compliance with
  6. # the License. You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. log4j.rootLogger=INFO, stdout
  16. log4j.appender.stdout=org.apache.log4j.ConsoleAppender
  17. log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
  18. log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n
  19. log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender
  20. log4j.appender.kafkaAppender.DatePattern='.'yyyy-MM-dd-HH
  21. log4j.appender.kafkaAppender.File=${kafka.logs.dir}/server.log
  22. log4j.appender.kafkaAppender.layout=org.apache.log4j.PatternLayout
  23. log4j.appender.kafkaAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  24. log4j.appender.stateChangeAppender=org.apache.log4j.DailyRollingFileAppender
  25. log4j.appender.stateChangeAppender.DatePattern='.'yyyy-MM-dd-HH
  26. log4j.appender.stateChangeAppender.File=${kafka.logs.dir}/state-change.log
  27. log4j.appender.stateChangeAppender.layout=org.apache.log4j.PatternLayout
  28. log4j.appender.stateChangeAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  29. log4j.appender.requestAppender=org.apache.log4j.DailyRollingFileAppender
  30. log4j.appender.requestAppender.DatePattern='.'yyyy-MM-dd-HH
  31. log4j.appender.requestAppender.File=${kafka.logs.dir}/kafka-request.log
  32. log4j.appender.requestAppender.layout=org.apache.log4j.PatternLayout
  33. log4j.appender.requestAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  34. log4j.appender.cleanerAppender=org.apache.log4j.DailyRollingFileAppender
  35. log4j.appender.cleanerAppender.DatePattern='.'yyyy-MM-dd-HH
  36. log4j.appender.cleanerAppender.File=${kafka.logs.dir}/log-cleaner.log
  37. log4j.appender.cleanerAppender.layout=org.apache.log4j.PatternLayout
  38. log4j.appender.cleanerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  39. log4j.appender.controllerAppender=org.apache.log4j.DailyRollingFileAppender
  40. log4j.appender.controllerAppender.DatePattern='.'yyyy-MM-dd-HH
  41. log4j.appender.controllerAppender.File=${kafka.logs.dir}/controller.log
  42. log4j.appender.controllerAppender.layout=org.apache.log4j.PatternLayout
  43. log4j.appender.controllerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  44. log4j.appender.authorizerAppender=org.apache.log4j.DailyRollingFileAppender
  45. log4j.appender.authorizerAppender.DatePattern='.'yyyy-MM-dd-HH
  46. log4j.appender.authorizerAppender.File=${kafka.logs.dir}/kafka-authorizer.log
  47. log4j.appender.authorizerAppender.layout=org.apache.log4j.PatternLayout
  48. log4j.appender.authorizerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  49. # Turn on all our debugging info
  50. #log4j.logger.kafka.producer.async.DefaultEventHandler=DEBUG, kafkaAppender
  51. #log4j.logger.kafka.client.ClientUtils=DEBUG, kafkaAppender
  52. #log4j.logger.kafka.perf=DEBUG, kafkaAppender
  53. #log4j.logger.kafka.perf.ProducerPerformance$ProducerThread=DEBUG, kafkaAppender
  54. #log4j.logger.org.I0Itec.zkclient.ZkClient=DEBUG
  55. log4j.logger.kafka=INFO, kafkaAppender
  56. log4j.logger.kafka.network.RequestChannel$=WARN, requestAppender
  57. log4j.additivity.kafka.network.RequestChannel$=false
  58. #log4j.logger.kafka.network.Processor=TRACE, requestAppender
  59. #log4j.logger.kafka.server.KafkaApis=TRACE, requestAppender
  60. #log4j.additivity.kafka.server.KafkaApis=false
  61. log4j.logger.kafka.request.logger=WARN, requestAppender
  62. log4j.additivity.kafka.request.logger=false
  63. log4j.logger.kafka.controller=TRACE, controllerAppender
  64. log4j.additivity.kafka.controller=false
  65. log4j.logger.kafka.log.LogCleaner=INFO, cleanerAppender
  66. log4j.additivity.kafka.log.LogCleaner=false
  67. log4j.logger.state.change.logger=TRACE, stateChangeAppender
  68. log4j.additivity.state.change.logger=false
  69. #Change this to debug to get the actual audit log for authorizer.
  70. log4j.logger.kafka.authorizer.logger=WARN, authorizerAppender
  71. log4j.additivity.kafka.authorizer.logger=false