Is your feature request related to a problem? Please describe.
It can be challenging to gain access to Pulp logs in some circumstances, and in addition it can sometimes be difficult to parse the logs apart if there are many actions being simultaneously logged without external log processing tools like splunk + correlation IDs.
Describe the solution you'd like
It would be useful if a developer/user could use the X-TASK-DIAGNOSTICS mechanism to collect task-specific logs and make them available via the /profile_artifacts/ mechanism. This would combine nicely with #7214, as developers could then debug long-running tasks with verbose debug logging without needing to filter out as much unrelated information.