示例#1
0
 def tearDown(self):
     logger.setLevel(self.level)
     logger.removeHandler(self.handler)
     self.handler.reset()
示例#2
0
 def tearDown(self):
     logger.setLevel(self.level)
     logger.removeHandler(self.handler)
     self.handler.reset()
示例#3
0
 def setUp(self):
     self.level = logger.getEffectiveLevel()
     logger.setLevel(logging.DEBUG)
     logger.addHandler(self.handler)
示例#4
0
 def setUp(self):
     self.level = logger.getEffectiveLevel()
     logger.setLevel(logging.DEBUG)
     logger.addHandler(self.handler)