def main(): CONF(sys.argv[1:], project='oslo') logging.setup("oslo") with contextlib.closing(impl_zmq.ZmqProxy(CONF)) as reactor: reactor.consume_in_thread() reactor.wait()
def setup_logging(conf): """Sets up the logging options for a log with supplied name. :param conf: a cfg.ConfOpts object """ product_name = "quantum" logging.setup(product_name) LOG.info(_("Logging enabled!"))
def setup_logging(conf): """ Sets up the logging options for a log with supplied name :param conf: a cfg.ConfOpts object """ product_name = "quantum" logging.setup(product_name) log_root = logging.getLogger(product_name).logger log_root.propagate = 0 LOG.info(_("Logging enabled!"))
from quantum.openstack.common import log as logging from quantum.common import config logging.setup('quantum') config.parse(['--config-file', '/etc/quantum/quantum.conf', '--config-file', '/etc/quantum/plugins/openvswitch/ovs_quantum_plugin.ini']) application = config.load_paste_app("quantum")