By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,385 Members | 1,109 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,385 IT Pros & Developers. It's quick & easy.

Re: Help with Borg design Pattern

P: n/a
Le Monday 30 June 2008 10:52:24 Casey McGinty, vous avez écrit*:
I'm running into a slight problem however that my run-time defined logging
level is not correctly set until after the module has initialized,
preventing any log messages from showing up. Is there a pythonic way to get
around this? I'm thinking of adding a module init routine, but I don't feel
like this is clean solution.

If the logging machinery is effectively not ready (and couldn't be implemented
so) at the time "import logging" statment is done, then you'll need to havea
logging procedure which queue the message waitinig for system to be
operational and deliver them lazily. This is quite an easy thing to implement
(hint : use stdlib data structures that support multi threading from the
beginning).

--
_____________

Maric Michaud
Jun 30 '08 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.