Exemple #1
0
 def test_setup_yaml(self):
     log.setup_logging(default_path=get_path('logging.yaml'))
     logger = logging.getLogger(__name__)
     print logger.name
     self.assertEqual(logger.root.level, logging.DEBUG)
Exemple #2
0
 def test_setup_json(self):
     log.setup_logging(default_path = get_path('logging.json'))
     logger = logging.getLogger(__name__)
     self.assertEqual(logger.root.level, logging.DEBUG)