This is an automated email from the ASF dual-hosted git repository.

yangjie01 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new 82e3f0d5d594 [SPARK-52309][SQL][TESTS] Add `log4j2.properties` to 
`pipelines` module for testing
82e3f0d5d594 is described below

commit 82e3f0d5d594f544ec4689cb833879c8a95ec849
Author: yangjie01 <[email protected]>
AuthorDate: Tue May 27 00:43:24 2025 +0800

    [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 #51020 from LuciferYang/pipelines-log4j.
    
    Lead-authored-by: yangjie01 <[email protected]>
    Co-authored-by: YangJie <[email protected]>
    Signed-off-by: yangjie01 <[email protected]>
---
 sql/pipelines/src/test/resources/log4j2.properties | 31 ++++++++++++++++++++++
 1 file changed, 31 insertions(+)

diff --git a/sql/pipelines/src/test/resources/log4j2.properties 
b/sql/pipelines/src/test/resources/log4j2.properties
new file mode 100644
index 000000000000..5f89859463a2
--- /dev/null
+++ b/sql/pipelines/src/test/resources/log4j2.properties
@@ -0,0 +1,31 @@
+#
+# 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.
+#
+
+# Set everything to be logged to the file target/unit-tests.log
+rootLogger.level = info
+rootLogger.appenderRef.file.ref = File
+
+appender.file.type = File
+appender.file.name = File
+appender.file.fileName = target/unit-tests.log
+appender.file.append = true
+appender.file.layout.type = PatternLayout
+appender.file.layout.pattern = %d{yy/MM/dd HH:mm:ss.SSS} %t %p %c{1}: %m%n%ex
+
+# Ignore messages below warning level from Jetty, because it's a bit verbose
+logger.jetty.name = org.sparkproject.jetty
+logger.jetty.level = warn


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to