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)
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)