Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19207

LocalSparkSession should use Slf4JLoggerFactory.INSTANCE instead of creating new object via constructor

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • None
    • 2.2.0
    • None
    • None

    Description

      It's deprecated to create Slf4JLoggerFactory's instance via constructor. A warning is generated:

      [warn] /Users/ozawa/workspace/spark/sql/core/src/test/scala/org/apache/spark/sql/LocalSparkSession.scala:32: constructor Slf4JLoggerFactory in class Slf4JLoggerFactory is deprecated: see corresponding Javadoc for more information.
      [warn]     InternalLoggerFactory.setDefaultFactory(new Slf4JLoggerFactory())
      

      Attachments

        Activity

          People

            ozawa Tsuyoshi Ozawa
            ozawa Tsuyoshi Ozawa
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: