# Log directory and files are being created but they are empty

**URL:** <https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231>\
**Category:** General\
**Created:** [June 5, 2025, 6:34pm UTC](https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231 "2025-06-05T18:34:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alessandro](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@Alessandro](https://discuss.pylabrobot.org/u/Alessandro)\
**Post date:** [June 5, 2025, 6:34pm UTC](https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231/1 "2025-06-05T18:34:13Z")

</div>

I followed the [guide](https://docs.pylabrobot.org/user_guide/configuration.html) to setup the logger at the `DEBUG` log level like this:

```python
config = Config(
  logging=Config.Logging(
    level=logging.DEBUG,
    log_dir=Path("logs")
  )
)

pylabrobot.configure(config)

```

While I see outputs between the jupyter cells throughout my method, and the `logs` dir is created with the file `pylabrobot-20250605.log` in it, the file stays empty. I’m using the `LiquidHandlerChatterboxBackend` if that matters.

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [June 5, 2025, 7:54pm UTC](https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231/2 "2025-06-05T19:54:15Z")

</div>

ah, that’s because in this case nothing gets logged! currently only select backends log actually. codex added some logging in this PR: [Add debug logging to LiquidHandler methods by rickwierenga · Pull Request #561 · PyLabRobot/pylabrobot · GitHub](https://github.com/PyLabRobot/pylabrobot/pull/561). If that works for you I will merge it.

(in our case, we mostly log on the protocol level, but for debugging perhaps this level of logging is nice. for reference, also check out io level logging: [aP Validation Against Log File Example — PyLabRobot documentation](https://docs.pylabrobot.org/user_guide/machine-agnostic-features/validation.html))

---

<div class="post-metadata">

**Author:** ![Alessandro](https://discuss.pylabrobot.org/letter_avatar_proxy/v4/letter/a/ac91a4/32.png) [@Alessandro](https://discuss.pylabrobot.org/u/Alessandro)\
**Post date:** [June 5, 2025, 8:11pm UTC](https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231/3 "2025-06-05T20:11:54Z")

</div>

It’s working pretty well, I see some logging.

Haven’t done extensive testing of course, but it looks like it’s good 👍

---

<div class="post-metadata">

**Author:** ![rickwierenga](https://discuss.pylabrobot.org/user_avatar/discuss.pylabrobot.org/rickwierenga/32/963_2.png) [@rickwierenga](https://discuss.pylabrobot.org/u/rickwierenga)\
**Post date:** [June 5, 2025, 8:24pm UTC](https://discuss.pylabrobot.org/t/log-directory-and-files-are-being-created-but-they-are-empty/231/4 "2025-06-05T20:24:28Z")

</div>

sweet! i’ll merge this

we can review and adjust as we use it more in the future
