ppkarwasz commented on code in PR #17373: URL: https://github.com/apache/kafka/pull/17373#discussion_r1820760649
########## config/log4j2.properties: ########## @@ -0,0 +1,163 @@ +# 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. + +# Unspecified loggers and loggers with additivity=true output to server.log and stdout +# Note that INFO only applies to unspecified loggers, the log level of the child logger is used otherwise +name=LogConfig +appenders=stdout,kafkaAppender,stateChangeAppender,requestAppender,cleanerAppender,controllerAppender,authorizerAppender + +# Console appender (stdout) +appender.stdout.type=Console +appender.stdout.name=STDOUT +appender.stdout.layout.type=PatternLayout +appender.stdout.layout.pattern=[%d] %p %m (%c)%n Review Comment: @mimaison, To be precise, users will **always** be able to use the configuration format of their choice, regardless of the format adopted by Kafka. The choice of the configuration file format mostly concerns the **default** configuration files shipped in the `*.tar.gz` archive. If Kafka ships with a `log4j2.properties` file, users will feel forced to use that one and that is IMHO a terrible format to work with. I have opened a [thread on `dev@kafka`](https://lists.apache.org/thread/khm0jn9f0vgp30pfyoy6jc0qy46sbklp) to start a discussion about the subject. **PS**: There is currently a primitive [`Log4j1ConfigurationConverter` CLI tool](https://logging.apache.org/log4j/2.x/migrate-from-log4j1.html#Log4j2ConfigurationFormat) that allows users to automatically convert a `log4j.properties` files into a `log4j2.xml` file. I am currently working on extending the list of formats that can be automatically converted (cf. https://github.com/apache/logging-log4j2/issues/2080), but I will probably not have time to support the quirky `log4j2.properties` format. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
