shade uses Python Logging. As shade is a library, it does not configure logging handlers automatically, expecting instead for that to be the purview of the consuming application.
For consumers who just want to get a basic logging setup without thinking about it too deeply, there is a helper method. If used, it should be called before any other shade functionality.
import shade
shade.simple_logging()
shade.simple_logging takes two optional boolean arguments:
shade.simple_logging also sets up a few other loggers and squelches some warnings or log messages that are otherwise uninteresting or unactionable by a shade user.
shade logs to a set of different named loggers.
Most of the logging is set up to log to the root shade logger. There are additional sub-loggers that are used at times, primarily so that a user can decide to turn on or off a specific type of logging. They are listed below.
Fedora 24 [official]
, so these messages are
logged separately.HTTP Interactions are handled by keystoneauth. If you want to enable HTTP tracing while using shade and are not using shade.simple_logging, set the log level of the keystoneauth logger to DEBUG.
Python logging is a standard feature of Python and is documented fully in the Python Documentation, which varies by version of Python.
For more information on Python Logging for Python v2, see https://docs.python.org/2/library/logging.html.
For more information on Python Logging for Python v3, see https://docs.python.org/3/library/logging.html.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.