def testLogCategory(self): logger.configureCategory(logger.Category.APP, logger.Severity.INFO) logger.info(self.testMsg) self._assertMsg()
def testReconfigureCategory(self): snowmanCategory = logger.configureCategory(u"☃ Category", logger.Severity.INFO) logger.info(self.testMsg, snowmanCategory) self._assertMsg()
def testOmitCategory(self): logger.configureCategory(logger.Category.APP, logger.Severity.CRIT) logger.info(self.testMsg) self._assertNoMsg()
def testRemoveSink(self): logger.removeSink(self.pyLogger) logger.info(self.testMsg) self._assertNoMsg()
def testReconfigureCategory(self): snowmanCategory = logger.configureCategory(u'☃ Category', logger.Severity.INFO) logger.info(self.testMsg, snowmanCategory) self._assertMsg()