コード例 #1
0
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()
コード例 #2
0
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()
コード例 #3
0
ファイル: service.py プロジェクト: avantiajay/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')
コード例 #4
0
ファイル: config.py プロジェクト: appliedcode/keystone
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)
コード例 #5
0
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)
コード例 #6
0
ファイル: config.py プロジェクト: itlinux/keystone
def setup_logging():
    """Sets up logging for the keystone package."""
    log.setup('keystone')
コード例 #7
0
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')
コード例 #8
0
def setup_logging():
    """Sets up logging for the keystone package."""
    log.setup('keystone')