code: def emit(self, record):
  		
  		now = time.time()
  		current_name = self.get_filename(now)
  		try:
  			if not self.stream.name == current_name:
  				self._use_file(current_name)
  		except AttributeError:
  			# a stream has not been created, so create one.
  			self._use_file(current_name)
  		logging.StreamHandler.emit(self, record)
docs: Emit a record.
  
  		Output the record to the file, ensuring that the currently-
  		opened file has the correct date.