# \[Tool\] log stdout/stderr of an app to a file

**URL:** <https://community.homey.app/t/tool-log-stdout-stderr-of-an-app-to-a-file/75726>\
**Category:** Developers\
**Tags:** app, tools, homey-pro\
**Created:** [January 29, 2023, 8:09am UTC](https://community.homey.app/t/tool-log-stdout-stderr-of-an-app-to-a-file/75726 "2023-01-29T08:09:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![robertklep](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/robertklep/32/160628_2.png) [@robertklep](https://community.homey.app/u/robertklep)\
**Post date:** [January 29, 2023, 8:09am UTC](https://community.homey.app/t/tool-log-stdout-stderr-of-an-app-to-a-file/75726/1 "2023-01-29T08:09:04Z")

</div>

During app development it’s sometimes useful to keep an app running for an extended period of time to spot issues or to do some debug logging.

To capture all log statements to stdout and stderr from your app to a file (i.e. calls to `this.log()` and `this.error()`), I created [`homey-log-to-file`](https://github.com/robertklep/homey-log-to-file).

You can retrieve the logfile contents at any point through an HTTP request.

Instructions on how to install and use are provided on the Github page. This package is not intended to be used in production apps.

---

<div class="post-metadata">

**Author:** ![RogoGames](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rogogames/32/131462_2.png) [@RogoGames](https://community.homey.app/u/RogoGames)\
**Post date:** [January 9, 2024, 10:39pm UTC](https://community.homey.app/t/tool-log-stdout-stderr-of-an-app-to-a-file/75726/2 "2024-01-09T22:39:52Z")

</div>

This tool is really helpful! Thank you for sharing it 💓
