# Logging module for custom environment not working

**URL:** https://discuss.ray.io/t/logging-module-for-custom-environment-not-working/6838
**Category:** RLlib
**Created:** [July 15, 2022, 11:34am UTC](https://discuss.ray.io/t/logging-module-for-custom-environment-not-working/6838 "2022-07-15T11:34:05Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![sirius](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/sirius/32/4405_2.png) [@sirius](https://discuss.ray.io/u/sirius)
#### Post date: [July 15, 2022, 11:34am UTC](https://discuss.ray.io/t/logging-module-for-custom-environment-not-working/6838/1 "2022-07-15T11:34:05Z")

</div>

**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 🙂
