Prefix c10d log messages with `[c10d]` for easier troubleshooting (#73144)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/73144
This PR formats c10d log messages written by the `C10D_INFO/WARN/ERROR` macros by prefixing them with the `[c10d]` tag for easier troubleshooting. See #73121 for a specific customer request.
Note though that this is a temporary fix to unblock our users. Ideally our global logging facility should natively support component-based preambles.
ghstack-source-id: 149748943
Test Plan: N/A
Reviewed By: rohan-varma
Differential Revision: D34363975
fbshipit-source-id: 6b8096ac4b2fa344406c866a2e7665541cb60b34
(cherry picked from commit af14aef18d0239f04730545596a05536e0f9c857)