# Python logging RotatingFileHandler writes to random file after the first log rotation

**URL:** <https://discuss.python.org/t/python-logging-rotatingfilehandler-writes-to-random-file-after-the-first-log-rotation/46004>\
**Category:** Python Help\
**Created:** [February 15, 2024, 3:08pm UTC](https://discuss.python.org/t/python-logging-rotatingfilehandler-writes-to-random-file-after-the-first-log-rotation/46004 "2024-02-15T15:08:34Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![MegaIng](https://sea2.discourse-cdn.com/flex002/user_avatar/discuss.python.org/megaing/32/16162_2.png) [@MegaIng](https://discuss.python.org/u/MegaIng)\
**Post date:** [February 15, 2024, 3:28pm UTC](https://discuss.python.org/t/python-logging-rotatingfilehandler-writes-to-random-file-after-the-first-log-rotation/46004/2 "2024-02-15T15:28:38Z")

</div>

In [this](https://discuss.python.org/t/rotatingfilehandler-seems-to-write-logs-to-the-1-file-that-is-already-rotated/22890) very similar question the problem was multithreading. Are you using multi-threading/-processing?

---

_[View the full topic](https://discuss.python.org/t/python-logging-rotatingfilehandler-writes-to-random-file-after-the-first-log-rotation/46004)._
