My experience with Java, Groovy, Grails, Python and more.
  • Home

Thread Id

A collection of 1 post

Python

How to display thread id in python logs

You can automatically add thread ids to your log statements using Python's logging module with LogRecord. LogRecord provides 2 attributes for thread related information: threadName and thread. %(thread)d : Thread ID (if available)

  • Ravi Hasija
    Ravi Hasija
1 min read
My experience with Java, Groovy, Grails, Python and more. © 2025
Latest Posts Ghost