Lines Matching refs:config
24 import logging.config
1214 """Reading logging config from a .ini-style config file."""
1425 # config 8, check for resource warning
1470 logging.config.fileConfig(file, encoding="utf-8", **kwargs)
1473 # A simple config file which overrides the default settings.
1488 # A simple config file which overrides the default settings.
1493 logging.config.fileConfig(cp)
1505 def test_config1_ok(self, config=config1):
1506 # A config file defining a sub-parser as well.
1508 self.apply_config(config)
1521 # A simple config file which overrides the default settings.
1525 # A simple config file which overrides the default settings.
1529 # A config file specifying a custom formatter class.
1544 self.test_config1_ok(config=self.config5)
1547 self.test_config1_ok(config=self.config6)
1673 self.assertRaises(RuntimeError, logging.config.fileConfig, file)
1678 self.assertRaises(RuntimeError, logging.config.fileConfig, fn)
1682 self.assertRaises(FileNotFoundError, logging.config.fileConfig, 'filenotfound')
1710 logging.config.fileConfig(
2274 """Reading logging config from a dictionary."""
2577 # config 7 does not define compiler.parser but defines compiler.lexer
3015 logging.config.dictConfig(conf)
3018 # A simple config which overrides the default settings.
3032 def test_config1_ok(self, config=config1):
3033 # A config defining a sub-parser as well.
3035 self.apply_config(config)
3048 # A simple config which overrides the default settings.
3052 # A simple config which overrides the default settings.
3056 # A simple config which overrides the default settings.
3060 # A simple config which overrides the default settings.
3064 # A config specifying a custom formatter class.
3079 # A config specifying a custom formatter class.
3094 self.test_config1_ok(config=self.config5)
3269 config = {
3283 self.apply_config(config)
3284 self.apply_config(config)
3292 t = logging.config.listen(0, verify)
3314 logging.config.stopListening()
3419 config = copy.deepcopy(self.out_of_order)
3420 config['formatters']['mySimpleFormatter']['format'] = "${asctime} (${name}) ${levelname}: ${message}"
3422 self.apply_config(config)
3439 config = self.custom_formatter_class_validate.copy()
3440 config['formatters']['form1']['style'] = "$"
3443 self.apply_config(config)
3462 bc = logging.config.BaseConfigurator(d)
3491 config = {
3502 self.apply_config(config)
3545 config = {
3563 self.apply_config(config)
3568 del config['disable_existing_loggers']
3569 self.apply_config(config)