Skip to content

Commit

Permalink
KAFKA-18338 add log4j.yaml to test-common-api and remove unsed log4j.…
Browse files Browse the repository at this point in the history
…properties from test-common (apache#18294)

Reviewers: TengYao Chi <[email protected]>, Chia-Ping Tsai <[email protected]>
  • Loading branch information
brandboat authored Dec 24, 2024
1 parent a940d52 commit 5a4590c
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 28 deletions.
21 changes: 0 additions & 21 deletions test-common/test-common-api/src/test/resources/log4j.properties

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# 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
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
Expand All @@ -12,10 +12,24 @@
# 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

log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=[%d] %p %m (%c:%L)%n
Configuration:
Properties:
Property:
- name: "logPattern"
value: "[%d] %p %m (%c:%L)%n"

log4j.logger.org.apache.kafka=INFO
Appenders:
Console:
name: STDOUT
PatternLayout:
pattern: "${logPattern}"

Loggers:
Root:
level: INFO
AppenderRef:
- ref: STDOUT
Logger:
- name: org.apache.kafka
level: INFO

0 comments on commit 5a4590c

Please sign in to comment.