Logging vs printing
sybrenUSE at YOURthirdtower.com.imagination
Mon May 8 14:16:42 CEST 2006
Leo Breebaart enlightened us with:
> I think the main reason why I am not using it by default is because,
> when all is said and done, it still comes easier to me to resort to
> guarded print statements then to set up and use the logging
The logging "machinery" isn't that huge nor is it difficult to set up:
log = logging.getLogger('your.module.name')
and that's all there is to it.
The problem with the world is stupidity. Not saying there should be a
capital punishment for stupidity, but why don't we just take the
safety labels off of everything and let the problem solve itself?
More information about the Python-list