Logging module for custom environment not working

How severe does this issue affect your experience of using Ray?

  • High: It blocks me to complete my task.

Hi Ray Team,
So I had been using ray to migrate my RL code from stablebaselines3. However, for the sake of my own understanding, I had heavily logged the original code while developing it later, and I was using python logging to do so.

Now when I migrate the same code in rllib, halfway through I realised that when ray is not initialized in parallel mode, the logs work fine. However, when I increase the number of ray actors from the config, the environment logs are gone.

From my understanding, each ray actor spawns a new process in my machine, and I wanted to know if there is a workaround to get my custom environment logs from the logging module for any of the subprocess into my main process?

And thank you for this amazing project. This is really a game changer :slight_smile: