code: async def emit(self, record: LogRecord):  # type: ignore
          
          try:
              if self.should_rollover(record):
                  async with self._rollover_lock:
                      if self.should_rollover(record):
                          await self.do_rollover()
              await super().emit(record)
          except Exception as e:
              await self.handleError(record)
docs: Emit a record.
  
          Output the record to the file, catering for rollover as described
          in `do_rollover`.