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

Remove messy dependencies to log4j

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete CommentsDelete
    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Won't Fix
    • None
    • None
    • Spark Core
    • None

    Description

      There are some tickets regarding loosening the dependency on Log4j, however some classes still use the following scheme:

        if (Logger.getLogger(classOf[SomeClass]).getLevel == null) {
          Logger.getLogger(classOf[SomeClass]).setLevel(someLevel)
        }
      

      This doesn't look good and make it difficult to track why some logs are missing when you use Log4j and why they are flooding when you use something else, like logback.

      There is a Logging class which checks whether we use Log4j or not. Why not delegate all of such invocations, where the Logging class could handle it properly, maybe considering more logging implementations?

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned Assign to me
            jlewandowski Jacek Lewandowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment