pan3793 commented on code in PR #51775:
URL: https://github.com/apache/spark/pull/51775#discussion_r2254708138


##########
common/utils/src/main/scala/org/apache/spark/internal/Logging.scala:
##########
@@ -484,21 +477,21 @@ private[spark] object Logging {
    * Enable Structured logging framework.
    */
   private[spark] def enableStructuredLogging(): Unit = {
-    structuredLoggingEnabled = true
+    SparkLoggerFactory.enableStructuredLogging()

Review Comment:
   it's necessary to make Java's Structured Logging API scala-free, otherwise, 
the Java SparkLogger still requires to access Scala Logging at runtime.



-- 
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: reviews-unsubscr...@spark.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to