kartagis / pysimplesoap

Automatically exported from code.google.com/p/pysimplesoap
0 stars 0 forks source link

Logging instead of printing #40

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
It's better to use python loggers than print statement.
With that change, we are able to see messages only from specified module, or 
only critical messages.

Usage:

import logging
logging.basicConfig(level=logging.DEBUG)
logging.getLogger('pysimplesoap.server').setLevel(logging.DEBUG)
logging.getLogger('pysimplesoap.simplexml').setLevel(logging.DEBUG)

Original issue reported on code.google.com by ma...@matee.net on 16 Dec 2011 at 10:27

Attachments:

GoogleCodeExporter commented 8 years ago
Great! I've made you commiter in case you want to push your changes ;-)

Original comment by reingart@gmail.com on 16 Dec 2011 at 3:39

GoogleCodeExporter commented 8 years ago

Original comment by ma...@matee.net on 16 Dec 2011 at 4:03