예제 #1
0
def configure(config):
    global _CONF
    global LOG

    _CONF = config
    _CONF.register_opts(OPTIONS, group=OPT_GROUP_NAME)

    logging.register(_CONF, OPT_GROUP_NAME)
    logging.setup(_CONF, OPT_GROUP_NAME)
    LOG = logging.getLogger(__name__)
예제 #2
0
파일: rbac.py 프로젝트: openstacker/eom
def configure(config):
    global CONF
    global LOG

    CONF = config
    CONF.register_opt(cfg.StrOpt(OPTION_NAME), group=OPT_GROUP_NAME)

    logging.register(CONF, OPT_GROUP_NAME)
    logging.setup(CONF, OPT_GROUP_NAME)
    LOG = logging.getLogger(__name__)
예제 #3
0
def configure(config):
    global _CONF
    global LOG

    _CONF = config
    _CONF.register_opts(OPTIONS, group=OPT_GROUP_NAME)

    logging.register(_CONF, OPT_GROUP_NAME)
    logging.setup(_CONF, OPT_GROUP_NAME)
    LOG = logging.getLogger(__name__)
예제 #4
0
def configure(config):
    global _CONF
    global LOG

    _CONF = config
    _CONF.register_opts(GOV_OPTIONS, group=GOV_GROUP_NAME)
    _CONF.register_opts(REDIS_OPTIONS, group=REDIS_GROUP_NAME)

    logging.register(_CONF, GOV_GROUP_NAME)
    logging.setup(_CONF, GOV_GROUP_NAME)
    LOG = logging.getLogger(__name__)
예제 #5
0
파일: auth.py 프로젝트: andrew-vant/eom
def configure(config):
    global _CONF
    global LOG

    _CONF = config
    _CONF.register_opts(AUTH_OPTIONS, group=AUTH_GROUP_NAME)
    _CONF.register_opts(REDIS_OPTIONS, group=REDIS_GROUP_NAME)

    logging.register(_CONF, AUTH_GROUP_NAME)
    logging.setup(_CONF, AUTH_GROUP_NAME)
    LOG = logging.getLogger(__name__)
예제 #6
0
파일: governor.py 프로젝트: openstacker/eom
def configure(config):
    global CONF
    global LOG

    CONF = config
    CONF.register_opts(GOV_OPTIONS, group=GOV_GROUP_NAME)
    CONF.register_opts(REDIS_OPTIONS, group=REDIS_GROUP_NAME)

    logging.register(CONF, GOV_GROUP_NAME)
    logging.setup(CONF, GOV_GROUP_NAME)
    LOG = logging.getLogger(__name__)