[slf4j-dev] [JIRA] Updates for SLF4J-499: Add property to log thread id

QOS.CH (JIRA) noreply-jira at qos.ch
Sun Aug 9 12:05:00 CEST 2020


SLF4J / SLF4J-499 [Open]
Add property to log thread id

==============================

Here's what changed in this issue in the last few minutes.
This issue has been created
This issue is now assigned to you.

View or comment on issue using this link
https://jira.qos.ch/browse/SLF4J-499

==============================
 Issue created
------------------------------

Michael Osipov created this issue on 09/Aug/20 11:54 AM
Summary:              Add property to log thread id
Issue Type:           Improvement
Affects Versions:     1.7.30
Assignee:             SLF4J developers list
Components:           slf4j-simple
Created:              09/Aug/20 11:54 AM
Environment:
  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.
Priority:             Major
Reporter:             Michael Osipov


==============================
 This message was sent by Atlassian Jira (v8.8.0#808000-sha1:e2c7e59)



More information about the slf4j-dev mailing list