def shouldRotate(self): if self.enableRotation: return DailyLogFile.shouldRotate(self) else: return False