'Emit a record.
Output the record to the file, catering for rollover as described
in doRollover().'

def emit(self, record):

    try:
        if self.shouldRollover(record):
            self.doRollover()
        logging.FileHandler.emit(self, record)
    except Exception:
        self.handleError(record)
