docs: def emit(self, record):
          """
          Handle the given record, this is the entry point from the python
          logging facility
  
          Params:
              record (logging.LogRecord): log record to handle
  
          Returns:
              None
          """
          record.task = self.cur_task
  
          if record.levelno >= self.dump_level and self.cur_task:
              self.tasks[self.cur_task].failed = True
              self.tasks[self.cur_task].force_show = True
  
          # Makes no sense to start a task with an error log
          is_start = START_TASK_REG.match(str(record.msg))
          if is_start:
              self.handle_new_task(is_start.groupdict()['task_name'], record)
              return
  
          is_end = END_TASK_REG.match(str(record.msg))
          if is_end:
              self.handle_closed_task(is_end.groupdict()['task_name'], record)
              return
  
          force_show_record = ALWAYS_SHOW_REG.match(str(record.msg))
          if force_show_record:
              record.msg = force_show_record.groupdict()['message']
              self.pretty_emit(record)
  
          if (
              not force_show_record and self.should_show_by_level(record)
              and self.should_show_by_depth()
          ):
              self.pretty_emit(record)
              return
  
          if self.cur_task:
              self.tasks[self.cur_task].append(record)