You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
86 lines
3.6 KiB
86 lines
3.6 KiB
# Licensed to the Apache Software Foundation (ASF) under one or more |
|
# contributor license agreements. See the NOTICE file distributed with |
|
# this work for additional information regarding copyright ownership. |
|
# The ASF licenses this file to You under the Apache License, Version 2.0 |
|
# (the "License"); you may not use this file except in compliance with |
|
# the License. You may obtain a copy of the License at |
|
# |
|
# http://www.apache.org/licenses/LICENSE-2.0 |
|
# |
|
# Unless required by applicable law or agreed to in writing, software |
|
# distributed under the License is distributed on an "AS IS" BASIS, |
|
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|
# See the License for the specific language governing permissions and |
|
# limitations under the License. |
|
|
|
log4j.rootLogger=INFO, stdout |
|
|
|
# ==================================== |
|
# messages going to kafkaAppender |
|
# ==================================== |
|
log4j.logger.kafka=DEBUG, kafkaAppender |
|
log4j.logger.org.I0Itec.zkclient.ZkClient=INFO, kafkaAppender |
|
log4j.logger.org.apache.zookeeper=INFO, kafkaAppender |
|
|
|
# ==================================== |
|
# messages going to zookeeperAppender |
|
# ==================================== |
|
# (comment out this line to redirect ZK-related messages to kafkaAppender |
|
# to allow reading both Kafka and ZK debugging messages in a single file) |
|
log4j.logger.org.apache.zookeeper=INFO, zookeeperAppender |
|
|
|
# ==================================== |
|
# stdout |
|
# ==================================== |
|
log4j.appender.stdout=org.apache.log4j.ConsoleAppender |
|
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout |
|
log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c)%n |
|
|
|
# ==================================== |
|
# fileAppender |
|
# ==================================== |
|
log4j.appender.fileAppender=org.apache.log4j.FileAppender |
|
log4j.appender.fileAppender.File=/tmp/kafka_all_request.log |
|
log4j.appender.fileAppender.layout=org.apache.log4j.PatternLayout |
|
log4j.appender.fileAppender.layout.ConversionPattern=[%d] %p %m (%c)%n |
|
|
|
# ==================================== |
|
# kafkaAppender |
|
# ==================================== |
|
log4j.appender.kafkaAppender=org.apache.log4j.DailyRollingFileAppender |
|
log4j.appender.kafkaAppender.File=/tmp/kafka.log |
|
log4j.appender.kafkaAppender.layout=org.apache.log4j.PatternLayout |
|
log4j.appender.kafkaAppender.layout.ConversionPattern=[%d] %p %m (%c)%n |
|
log4j.additivity.kafka=true |
|
|
|
# ==================================== |
|
# zookeeperAppender |
|
# ==================================== |
|
log4j.appender.zookeeperAppender=org.apache.log4j.DailyRollingFileAppender |
|
log4j.appender.zookeeperAppender.File=/tmp/zookeeper.log |
|
log4j.appender.zookeeperAppender.layout=org.apache.log4j.PatternLayout |
|
log4j.appender.zookeeperAppender.layout.ConversionPattern=[%d] %p %m (%c)%n |
|
log4j.additivity.org.apache.zookeeper=false |
|
|
|
# ==================================== |
|
# other available debugging info |
|
# ==================================== |
|
#log4j.logger.kafka.server.EmbeddedConsumer$MirroringThread=TRACE |
|
#log4j.logger.kafka.server.KafkaRequestHandlers=TRACE |
|
#log4j.logger.kafka.producer.async.AsyncProducer=TRACE |
|
#log4j.logger.kafka.producer.async.ProducerSendThread=TRACE |
|
#log4j.logger.kafka.producer.async.DefaultEventHandler=TRACE |
|
|
|
log4j.logger.kafka.consumer=DEBUG |
|
log4j.logger.kafka.tools.VerifyConsumerRebalance=DEBUG |
|
log4j.logger.kafka.tools.ConsumerOffsetChecker=DEBUG |
|
|
|
# to print message checksum from ProducerPerformance |
|
log4j.logger.kafka.perf.ProducerPerformance$ProducerThread=DEBUG |
|
|
|
# to print socket buffer size validated by Kafka broker |
|
log4j.logger.kafka.network.Acceptor=DEBUG |
|
|
|
# to print socket buffer size validated by SimpleConsumer |
|
log4j.logger.kafka.consumer.SimpleConsumer=TRACE |
|
|
|
|