4.9. Logging in Python client applications

The MRG Messaging Python client library supports logging using the standard Python logging module. The easiest way to do logging is to use the basicConfig(), which reports all warnings and errors:
from logging import basicConfig
MRG Messaging also provides a convenience method that makes it easy to specify the level of logging desired. For instance, the following code enables logging at the DEBUG level:
from qpid.log import enable, DEBUG
enable("qpid.io", DEBUG)
For more information on Python logging, see http://docs.python.org/lib/node425.html. For more information on MRG Messaging logging, use $ pydoc qpid.log.