You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "ASF GitHub Bot (Jira)" <ji...@apache.org> on 2025/04/14 14:12:00 UTC
[jira] [Updated] (SPARK-43782) Support log level configuration with static Spark conf
[ https://issues.apache.org/jira/browse/SPARK-43782?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
ASF GitHub Bot updated SPARK-43782:
-----------------------------------
Labels: pull-request-available (was: )
> Support log level configuration with static Spark conf
> ------------------------------------------------------
>
> Key: SPARK-43782
> URL: https://issues.apache.org/jira/browse/SPARK-43782
> Project: Spark
> Issue Type: Improvement
> Components: Spark Core
> Affects Versions: 3.5.0
> Reporter: Yan-Lin (Jared) Wang
> Assignee: Yan-Lin (Jared) Wang
> Priority: Minor
> Labels: pull-request-available
> Fix For: 3.5.0
>
>
> Today users are using {{sc.setLogLevel}} to configure the current log level using {{SparkContext}} accessible from within the {{{}SparkSession{}}}. It is a convenient alternative to directly depending on the Log4j mechanism like statically changing the {{log4j.xml}} or dynamically invoke the Log4j API.
> It would be great to allow the configuration of the log level using a static Spark conf that has the same kind of simplicity, which comes in handy when we don't want to manually change the {{{}log4j.xml{}}}. This is particularly helpful in the Spark Connect scenario where there’s no way for the client to call {{setLogLevel}} because {{SparkContext}} is not yet supported in its API, and when it connects to a platform where it can't easily change the Log4j config file.
> ./bin/pyspark --conf spark.log.level ERROR
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org