Uploaded image for project: 'SLF4J'
  1. SLF4J
  2. SLF4J-499

Add property to log thread id

    XMLWordPrintable

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major Major
    • 1.7.33, 2.0.0-alpha6
    • 1.7.30
    • slf4j-simple
    • None

    Description

      Sometimes, for debugging purposes, you need to see the thread id for chasing down deadlocks. Simple prints the thread name only. I need to run jps and jstack to figure out the id. Please add org.slf4j.simpleLogger.showThreadId which will be printed after the thread name as {{[#

      {id}

      ]}.

      In my usecase I use a distributed lock system which saves the node id and the thread id as lock owner. Having the thread id in the locks would make it much simpler.

      Attachments

        Activity

          People

            ceki Ceki Gülcü
            michael-o Michael Osipov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: