Skip to content

Commit d78b0ef

Browse files
LuciferYangyhuang-db
authored andcommitted
[SPARK-52309][SQL][TESTS] Add log4j2.properties to pipelines module for testing
### What changes were proposed in this pull request? This pr make `pipelines` module change to use to use `log4j2.properties` to configure test log output as others modules. ### Why are the changes needed? Should use `log4j2.properties` to configure logs ### Does this PR introduce _any_ user-facing change? No ### How was this patch tested? Pass GitHub Actions ### Was this patch authored or co-authored using generative AI tooling? No Closes apache#51020 from LuciferYang/pipelines-log4j. Lead-authored-by: yangjie01 <yangjie01@baidu.com> Co-authored-by: YangJie <yangjie01@baidu.com> Signed-off-by: yangjie01 <yangjie01@baidu.com>
1 parent 74236f5 commit d78b0ef

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#
2+
# Licensed to the Apache Software Foundation (ASF) under one or more
3+
# contributor license agreements. See the NOTICE file distributed with
4+
# this work for additional information regarding copyright ownership.
5+
# The ASF licenses this file to You under the Apache License, Version 2.0
6+
# (the "License"); you may not use this file except in compliance with
7+
# the License. You may obtain a copy of the License at
8+
#
9+
# http://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# Unless required by applicable law or agreed to in writing, software
12+
# distributed under the License is distributed on an "AS IS" BASIS,
13+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
# See the License for the specific language governing permissions and
15+
# limitations under the License.
16+
#
17+
18+
# Set everything to be logged to the file target/unit-tests.log
19+
rootLogger.level = info
20+
rootLogger.appenderRef.file.ref = File
21+
22+
appender.file.type = File
23+
appender.file.name = File
24+
appender.file.fileName = target/unit-tests.log
25+
appender.file.append = true
26+
appender.file.layout.type = PatternLayout
27+
appender.file.layout.pattern = %d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
28+
29+
# Ignore messages below warning level from Jetty, because it's a bit verbose
30+
logger.jetty.name = org.sparkproject.jetty
31+
logger.jetty.level = warn

0 commit comments

Comments
 (0)