Example #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__)
Example #2
0
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__)
Example #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__)
Example #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__)
Example #5
0
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__)
Example #6
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__)