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 prepare_service(argv=[]): cfg.set_defaults(log.log_opts, default_log_levels=['sqlalchemy=WARN', 'eventlet.wsgi.server=WARN' ]) parse_args(argv) log.setup('kds')
def setup_logging(conf, product_name='keystone'): """Sets up the logging options for a log with supplied name :param conf: a cfg.ConfOpts object """ # NOTE(ldbragst): This method will be removed along with other # refactoring in favor of using the # keystone/openstack/common/log.py implementation. This just ensures # that in the time between introduction and refactoring, we still have # a working logging implementation. logging.setup(product_name)
def setup_logging(): """Sets up logging for the keystone package.""" log.setup('keystone')
def prepare_service(argv=[]): cfg.set_defaults( log.log_opts, default_log_levels=['sqlalchemy=WARN', 'eventlet.wsgi.server=WARN']) parse_args(argv) log.setup('kds')