Lines Matching refs:rh
5361 rh = logging.handlers.RotatingFileHandler(
5363 self.assertFalse(rh.shouldRollover(None))
5364 rh.close()
5368 rh = logging.handlers.RotatingFileHandler(
5370 self.assertFalse(rh.shouldRollover(self.next_rec()))
5371 rh.close()
5374 rh = logging.handlers.RotatingFileHandler(self.fn, encoding="utf-8", maxBytes=1)
5375 self.assertTrue(rh.shouldRollover(self.next_rec()))
5376 rh.close()
5381 rh = logging.handlers.RotatingFileHandler(self.fn, encoding="utf-8")
5382 rh.emit(self.next_rec())
5384 rh.close()
5389 rh = logging.handlers.RotatingFileHandler(
5391 rh.namer = namer
5392 rh.emit(self.next_rec())
5394 rh.emit(self.next_rec())
5396 rh.emit(self.next_rec())
5399 rh.close()
5410 rh = HandlerWithNamerAndRotator(
5412 self.assertEqual(rh.namer(self.fn), self.fn + ".test")
5413 rh.emit(self.next_rec())
5415 rh.emit(self.next_rec())
5416 self.assertLogFile(rh.namer(self.fn + ".1") + ".rotated")
5417 self.assertFalse(os.path.exists(rh.namer(self.fn + ".1")))
5418 rh.close()
5433 rh = logging.handlers.RotatingFileHandler(
5435 rh.rotator = rotator
5436 rh.namer = namer
5438 rh.emit(m1)
5441 rh.emit(m2)
5449 rh.emit(self.next_rec())
5456 rh.emit(self.next_rec())
5463 rh.close()
5531 rh = logging.handlers.TimedRotatingFileHandler(
5535 actual = rh.computeRollover(currentTime)
5538 actual = rh.computeRollover(currentTime + 13 * 60 * 60)
5541 rh.close()
5552 rh = logging.handlers.TimedRotatingFileHandler(
5568 actual = rh.computeRollover(today)
5576 actual = rh.computeRollover(today + 13 * 60 * 60)
5582 rh.close()
5645 rh = logging.handlers.TimedRotatingFileHandler(
5648 actual = rh.computeRollover(currentTime)
5655 if rh.utc:
5667 print('t: %s (%s)' % (t, rh.utc), file=sys.stderr)
5676 rh.close()