# Logger in property change script

**URL:** <https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [January 25, 2024, 12:08pm UTC](https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759 "2024-01-25T12:08:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Om33](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Om33](https://forum.inductiveautomation.com/u/Om33)\
**Post date:** [January 25, 2024, 12:08pm UTC](https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759/1 "2024-01-25T12:08:56Z")

</div>

Hello,  
I have this logger in the two first lines of my property change script:

```auto
logger = system.util.getLogger("myLogger")
logger.info("Hello, world.")

```

The log info should be displayed in the gateway each time the script is triggered but this doesn't happen. I even commented the rest of script out so that just these two lines remain, but still haven't seen anything when I trigger the script. Anything else in the script works.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [January 25, 2024, 12:15pm UTC](https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759/2 "2024-01-25T12:15:56Z")

</div>

It might help to tag your question as Vision or Perspective. Also, see [Wiki - how to post code on this forum](https://forum.inductiveautomation.com/t/wiki-how-to-post-code-on-this-forum/77831).

Additional information required:

- Ignition edition and version.
- On your Status → Diagnostics → Logs, what is your **Min. Level** setting?

---

<div class="post-metadata">

**Author:** ![Om33](https://avatars.discourse-cdn.com/v4/letter/o/7ba0ec/32.png) [@Om33](https://forum.inductiveautomation.com/u/Om33)\
**Post date:** [January 25, 2024, 12:21pm UTC](https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759/3 "2024-01-25T12:21:58Z")

</div>

Min. Level is ALL

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [January 25, 2024, 12:43pm UTC](https://forum.inductiveautomation.com/t/logger-in-property-change-script/84759/4 "2024-01-25T12:43:57Z")

</div>

> [@Om33](#):
>
> The log info should be displayed in the gateway each time the script is triggered but this doesn't happen.

Vision logs go to the local vision client log as @Transistor said. If you want those logs to go to the gateway logs, you'll need to create a message handler to do it. Send what you want to a gateway message handler, and log it from there.
