コード例 #1
0
 def testLogCategory(self):
     logger.configureCategory(logger.Category.APP, logger.Severity.INFO)
     logger.info(self.testMsg)
     self._assertMsg()
コード例 #2
0
 def testReconfigureCategory(self):
     snowmanCategory = logger.configureCategory(u"☃ Category", logger.Severity.INFO)
     logger.info(self.testMsg, snowmanCategory)
     self._assertMsg()
コード例 #3
0
 def testOmitCategory(self):
     logger.configureCategory(logger.Category.APP, logger.Severity.CRIT)
     logger.info(self.testMsg)
     self._assertNoMsg()
コード例 #4
0
 def testRemoveSink(self):
     logger.removeSink(self.pyLogger)
     logger.info(self.testMsg)
     self._assertNoMsg()
コード例 #5
0
 def testLogCategory(self):
     logger.configureCategory(logger.Category.APP, logger.Severity.INFO)
     logger.info(self.testMsg)
     self._assertMsg()
コード例 #6
0
 def testOmitCategory(self):
     logger.configureCategory(logger.Category.APP, logger.Severity.CRIT)
     logger.info(self.testMsg)
     self._assertNoMsg()
コード例 #7
0
 def testReconfigureCategory(self):
     snowmanCategory = logger.configureCategory(u'☃ Category', logger.Severity.INFO)
     logger.info(self.testMsg, snowmanCategory)
     self._assertMsg()
コード例 #8
0
 def testRemoveSink(self):
     logger.removeSink(self.pyLogger)
     logger.info(self.testMsg)
     self._assertNoMsg()