def write(self, data):
        """Write some data to the log file"""
        BaseLogFile.write(self, data)
        # Guard against a corner case where time.time()
        # could potentially run backwards to yesterday.
        # Primarily due to network time.
        self.lastDate = max(self.lastDate, self.toDate())
Write some data to the log file
stackoverflow/venv/lib/python3.6/site-packages/twisted/python/logfile.py