PEP 282: A Logging System
Aahz
aahz at pythoncraft.com
Thu Apr 11 21:11:16 EDT 2002
In article <mailman.1018538209.18235.python-list at python.org>,
Vinay Sajip <vinay_sajip at yahoo.co.uk> wrote:
>
>That's to say, I expect it will be thread-safe in the not-too-distant
>future, but I have not yet tested it in conditions such that I can
>confidently comment on its thread-safety. When writing it I aimed not to use
>instance data or global data (other than read-only) except where absolutely
>necessary, so thread-safe operation should be straightforward to achieve.
>The main areas of work to ensure thread-safe operation are being worked on
>at the moment - they are:
>
>(a) Serializing access to the hierarchy structure and logging level tables,
>which are global.
>(b) Checking the code in detail to ensure that there is no thread-unsafe
>code.
>(c) Allowing for on-the-fly reconfiguration by a thread while other threads
>are using the system for logging.
>(d) Coming up with a good test harness designed to try and break the module
>in terms of thread-safety.
Your main difficulty with thread safety is WRT I/O. How do you plan to
handle that?
--
Aahz (aahz at pythoncraft.com) <*> http://www.pythoncraft.com/
"I disrespectfully agree." --SJM
More information about the Python-list
mailing list