The python documentation on logging is the main point where you should start.
SysLogHandler
is a subclass of Handler
(There are many more. See the docs).
This is the relevant part that you are looking for I think.
I went a bit further and checked the actual implementation of Handler.You can see that it usesthreading.RLock().