Example #1
0
 def test_set_loglevels(self):
     logger = gplog.get_default_logger()
     self.assertTrue(logger.getEffectiveLevel() == logging.INFO)
     gplog.enable_verbose_logging()
     self.assertTrue(logger.getEffectiveLevel() == logging.DEBUG)
Example #2
0
 def test_basics(self):
     logger = gplog.get_default_logger()
     self.assertTrue(logger is not None)
 def test_set_loglevels(self):
     logger = gplog.get_default_logger()
     self.assertLogLevel(logger, logging.INFO)
     gplog.enable_verbose_logging()
     self.assertLogLevel(logger, logging.DEBUG)
Example #4
0
 def test_set_loglevels(self):
     logger = gplog.get_default_logger()
     self.assertTrue(logger.getEffectiveLevel() == logging.INFO)
     gplog.enable_verbose_logging()
     self.assertTrue(logger.getEffectiveLevel() == logging.DEBUG)
Example #5
0
 def test_basics(self):
     logger = gplog.get_default_logger()
     self.assertTrue(logger is not None)
 def test_set_loglevels(self):
     logger = gplog.get_default_logger()
     self.assertLogLevel(logger, logging.INFO)
     gplog.enable_verbose_logging()
     self.assertLogLevel(logger, logging.DEBUG)