# How do I determine if a capability is being logged?

**URL:** <https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968>\
**Category:** Developers\
**Created:** [September 21, 2018, 11:36pm UTC](https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968 "2018-09-21T23:36:19Z")\
**Posts on this page:** 4\
**Page:** 1

<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:** [September 21, 2018, 11:36pm UTC](https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968/1 "2018-09-21T23:36:19Z")

</div>

Hi,

Maybe it’s me, but I think the SDK documentation is falling short big time, or at least for me with my limited skills 🙂

That being said, can anybody tell me how to determine is a capability of a device is being logged, or if the user has turned off logging for that specific device/capability?

Thanks in advance,

Le Cactus

---

<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:** [September 24, 2018, 8:25pm UTC](https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968/2 "2018-09-24T20:25:12Z")

</div>

Anybody?

I contacted support, but they told me the community was the only place I could inquire about this since they can’t/won’t answer developer/SDK questions.

TIA, cheers,  
/Cacti

---

<div class="post-metadata">

**Author:** ![Caseda](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/caseda/32/138695_2.png) [@Caseda](https://community.homey.app/u/Caseda)\
**Post date:** [September 25, 2018, 4:57am UTC](https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968/3 "2018-09-25T04:57:38Z")

</div>

Not sure why you’d want to know if a user is still logging or not, but that is just not possible to know as there is no tag in the capability data for that.

---

<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:** [September 25, 2018, 7:11pm UTC](https://community.homey.app/t/how-do-i-determine-if-a-capability-is-being-logged/1968/4 "2018-09-25T19:11:03Z")

</div>

Thanks. Weird though; the Insights website of Homey itself _is_ able to determine if logging is disabled, so there must be a way 🙂

I want to export the insights data directly to an SQL instance, and if logging of a capability is disabled I can skip that specific log. I know I can just take a look and see which logfiles exist like other export apps do, but the an old last log-date doesn’t per se mean that logging is disable, it might be a capability that seldom logs data.

Anyways, thanks for responding, I guess I need to work around it then.

Cheers,  
/Cacti
