# Log any flow

**URL:** <https://community.homey.app/t/log-any-flow/73761>\
**Category:** Developers\
**Created:** [December 17, 2022, 11:02pm UTC](https://community.homey.app/t/log-any-flow/73761 "2022-12-17T23:02:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mackelito](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mackelito/32/8243_2.png) [@Mackelito](https://community.homey.app/u/Mackelito)\
**Post date:** [December 17, 2022, 11:02pm UTC](https://community.homey.app/t/log-any-flow/73761/1 "2022-12-17T23:02:04Z")

</div>

Im looking for a way to log some info when ever a flow (any flow) is started… but I’m not seeing anything like that in the docs… or am I just missing it?

---

<div class="post-metadata">

**Author:** ![Colydon](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/colydon/32/84764_2.png) [@Colydon](https://community.homey.app/u/Colydon)\
**Post date:** [December 17, 2022, 11:43pm UTC](https://community.homey.app/t/log-any-flow/73761/2 "2022-12-17T23:43:53Z")

</div>

Might this app be useful for you?

> **[Simple (Sys) Log](https://homey.app/nl-nl/app/nl.nielsdeklerk.log/Simple-(Sys)-Log/)**
>
> Gebruik deze app voor Simpele (Sys) Logging.

With this app you can manually log any event you like.

---

<div class="post-metadata">

**Author:** ![Mackelito](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mackelito/32/8243_2.png) [@Mackelito](https://community.homey.app/u/Mackelito)\
**Post date:** [December 18, 2022, 10:18am UTC](https://community.homey.app/t/log-any-flow/73761/4 "2022-12-18T10:18:01Z")

</div>

I’m looking for a way to do this in code using the SDK 🙂

---

<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:** [December 18, 2022, 10:22am UTC](https://community.homey.app/t/log-any-flow/73761/5 "2022-12-18T10:22:13Z")

</div>

The SDK can’t access flows from other apps, you need the [Web API](https://athombv.github.io/node-homey-api/) for that.

But from what I can see, there’s no event or something similar that gets triggered when a flow is started.

---

<div class="post-metadata">

**Author:** ![Le\_Cactus](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/le_cactus/32/9727_2.png) [@Le\_Cactus](https://community.homey.app/u/Le_Cactus)\
**Post date:** [December 18, 2022, 11:53am UTC](https://community.homey.app/t/log-any-flow/73761/6 "2022-12-18T11:53:22Z")

</div>

I tested with that some time ago, but even then (AFAIK) manager:flow won’t show triggered flows, only information from flows started by the test button are shown:

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/b/ebcb8db96286d90827ecc52bf5df3aa92e244171.png)

If anyone knows a solution for that please tell!

---

<div class="post-metadata">

**Author:** ![Mackelito](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/mackelito/32/8243_2.png) [@Mackelito](https://community.homey.app/u/Mackelito)\
**Post date:** [December 18, 2022, 10:01pm UTC](https://community.homey.app/t/log-any-flow/73761/7 "2022-12-18T22:01:04Z")

</div>

Ah… I see… I was kind of hoping that something like this would have worked…

`Homey.Manager.on('*', (event, flow) => this.log(flow.id))`

or perhaps

`Homey.manager('flow').on('*', (event, flow) => this.log(flow.id))`

But no luck 😛
