def handle_new_task(self, task_name, record):
record.msg = ColorFormatter.colored('<STR_LIT:default>', START_TASK_MSG)<EOL>record.task = task_name<EOL>self.tasks[task_name] = Task(name=task_name, maxlen=self.buffer_size)<EOL>if self.should_show_by_depth():<EOL><INDENT>self.pretty_emit(record, is_header=True)<EOL><DEDENT>
Do everything needed when a task is starting

Params:
    task_name (str): name of the task that is starting
    record (logging.LogRecord): log record with all the info

Returns:
    None