Is Python's logging module thread safe?

前端 未结 1 1420
长情又很酷
长情又很酷 2020-12-28 13:24

If you call the same logging handler from two different python threads, is there a need for locking?

相关标签:
1条回答
  • 2020-12-28 14:11

    The logging module is thread-safe; it handles the locking for you. See the docs.

    0 讨论(0)
提交回复
热议问题