code: def emit(self, record):
          
          try:
              if self.shouldRollover(record):
                  self.doRollover()
              FileHandler.emit(self, record)
          except (KeyboardInterrupt, SystemExit):
              raise
          except Exception:
              self.handleError(record)
docs: Emit a record.
  
          Output the record to the file, catering for rollover as described
          in doRollover().