docs: def pretty_emit(self, record, is_header=False, task_level=None):
          """
          Wrapper around the :class:`logging.StreamHandler` emit method to add
          some decoration stuff to the message
  
          Args:
              record (logging.LogRecord): log record to emit
              is_header (bool): if this record is a header, usually, a start or
                  end task message
              task_level (int): If passed, will take that as the current nested
                  task level instead of calculating it from the current tasks
  
          Returns:
              None
          """
          task = record.task or self.cur_task
          if task_level is None:
              task_level = self.cur_depth_level
  
          if is_header:
              extra_prefix = (
                  self.get_task_indicator(task_level - 1) + ' ' +
                  ('' if self.am_i_main_thread else '[%s] ' % self.cur_thread) +
                  task + ': '
              )
              record.levelno = logging.INFO
          else:
              extra_prefix = '  ' + self.get_task_indicator(task_level) + ' '
  
          if task:
              record.msg = (
                  '  ' * (task_level - 1) + extra_prefix + str(record.msg)
              )
  
          super().emit(record)
          super().flush()