# Logging Custom Rules

**URL:** <https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141>\
**Category:** SHF Discussion and Questions\
**Created:** [November 22, 2021, 2:03pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141 "2021-11-22T14:03:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nitin\_m\_jain](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nitin\_m\_jain](https://developer.sailpoint.com/discuss/u/nitin_m_jain)\
**Post date:** [November 22, 2021, 2:03pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141/1 "2021-11-22T14:03:04Z")

</div>

Hi All,

Is there a way we can do logging of the custom buildmap rule deployed as a part of connector rule. I tried the below code inside my rule but not able to see the logs in ccg log file, I have also uploaded the connector configuration on tenant using API.

```
log.debug("inside custom connector rule"); 

```

Thanks a lot.  
Nitin

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 22, 2021, 3:40pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141/2 "2021-11-22T15:40:44Z")

</div>

Hi @nitin.m.jain. Connectors run on your virtual appliances. Did you enable debug logging on your VA?

 ![image](https://global.discourse-cdn.com/sailpoint/original/1X/6f3c0854b8fbfbfdf4a6f77e9b1e241d0d7f8876.png)

---

<div class="post-metadata">

**Author:** ![nitin\_m\_jain](https://avatars.discourse-cdn.com/v4/letter/n/ecb155/32.png) [@nitin\_m\_jain](https://developer.sailpoint.com/discuss/u/nitin_m_jain)\
**Post date:** [November 22, 2021, 5:36pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141/3 "2021-11-22T17:36:16Z")

</div>

Hi Colin,

Thanks for the reply, yes I did that but still did not got any logs. Do I need to do something else apart from enabling debug via VA and adding the logger statement in code.

Thanks.

---

<div class="post-metadata">

**Author:** ![colin\_mckibben](https://sea1.discourse-cdn.com/sailpoint/discuss/user_avatar/developer.sailpoint.com/colin_mckibben/32/37182_2.png) [@colin\_mckibben](https://developer.sailpoint.com/discuss/u/colin_mckibben)\
**Post date:** [November 22, 2021, 7:04pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141/4 "2021-11-22T19:04:40Z")

</div>

Check out [this topic](https://developer.sailpoint.com/discuss/t/what-is-the-correct-way-of-debugging-connector-rules/1771/14). There are a couple more things you can check to see why logs aren’t showing, and you might find your answer in that topic.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/sailpoint/original/2X/f/f2136700ed5e3703e0b85e02f6be799dacca7735.png) [@system](https://developer.sailpoint.com/discuss/u/system)\
**Post date:** [July 19, 2023, 2:22pm UTC](https://developer.sailpoint.com/discuss/t/logging-custom-rules/2141/5 "2023-07-19T14:22:17Z")

</div>


