Is Python's logging module thread safe?

前端 未结 1 1422
长情又很酷
长情又很酷 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)
提交回复
热议问题