Add task_type to logs handler.