This issue still exists though it seems fixes were pushed in the issues you cited.
I am using Pytorch 1.9.0 CUDA 10.2 build and Python 3.7 on Linux.
Do you know how and where to initialize the logger so that it works correctly?
Thanks.
EDIT: Seems like I found an implementation which works. I have been scouring for a solution where logging works with torch.distributed and couldn’t seem to make it work. I also saw some other users facing issues with the same thing where the logger wouldn’t print anything to console/file.
I looked at the logger implementation here
and this works. I am not sure what I was doing wrong but I will investigate further if I have time. It seems like there are subtle differences in which process and where (before or after dist.init_process_group) you initialize your logger.