test-log4j.properties 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  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=logs/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=logs/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=logs/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.controllerAppender=org.apache.log4j.DailyRollingFileAppender
  35. log4j.appender.controllerAppender.DatePattern='.'yyyy-MM-dd-HH
  36. log4j.appender.controllerAppender.File=logs/controller.log
  37. log4j.appender.controllerAppender.layout=org.apache.log4j.PatternLayout
  38. log4j.appender.controllerAppender.layout.ConversionPattern=[%d] %p %m (%c)%n
  39. # Turn on all our debugging info
  40. #log4j.logger.kafka.producer.async.DefaultEventHandler=DEBUG, kafkaAppender
  41. #log4j.logger.kafka.client.ClientUtils=DEBUG, kafkaAppender
  42. log4j.logger.kafka.tools=DEBUG, kafkaAppender
  43. log4j.logger.kafka.tools.ProducerPerformance$ProducerThread=DEBUG, kafkaAppender
  44. #log4j.logger.org.I0Itec.zkclient.ZkClient=DEBUG
  45. log4j.logger.kafka=INFO, kafkaAppender
  46. log4j.logger.kafka.network.RequestChannel$=TRACE, requestAppender
  47. log4j.additivity.kafka.network.RequestChannel$=false
  48. #log4j.logger.kafka.network.Processor=TRACE, requestAppender
  49. #log4j.logger.kafka.server.KafkaApis=TRACE, requestAppender
  50. #log4j.additivity.kafka.server.KafkaApis=false
  51. log4j.logger.kafka.request.logger=TRACE, requestAppender
  52. log4j.additivity.kafka.request.logger=false
  53. log4j.logger.kafka.controller=TRACE, controllerAppender
  54. log4j.additivity.kafka.controller=false
  55. log4j.logger.state.change.logger=TRACE, stateChangeAppender
  56. log4j.additivity.state.change.logger=false