cloudinstall.log — Log Interface

Logging interface

class cloudinstall.log.PrettyLog(obj)[source]
cloudinstall.log.setup_logger(name='cloudinstall.log', headless=False)[source]

setup logging

Overridding the default log level(debug) can be done via an environment variable UCI_LOGLEVEL

Available levels:

  • CRITICAL
  • ERROR
  • WARNING
  • INFO
  • DEBUG

Note

This filters only cloudinstall logging info. Set your environment var to UCI_NOFILTER to see debugging log statements from imported libraries (ie macumba)

# Running cloud-status from cli
$ UCI_LOGLEVEL=INFO openstack-status

# Disable log filtering
$ UCI_NOFILTER=1 openstack-status
Params str name:
 logger name
Returns:a log object