# How to print to console in UDT tags \> Value Events \> Value Changed script for debugging?

**URL:** <https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462>\
**Category:** Ignition\
**Tags:** scripting, perspective\
**Created:** [February 18, 2025, 6:38am UTC](https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462 "2025-02-18T06:38:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ali\_Paridari](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@Ali\_Paridari](https://forum.inductiveautomation.com/u/Ali_Paridari)\
**Post date:** [February 18, 2025, 6:38am UTC](https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462/1 "2025-02-18T06:38:17Z")

</div>

I am trying to develop a script for an OPC type tag inside a UDT tag for in its:

> `Scripting > Value Events > Value Changed`

I want to see the output of `print()` or `system.perspective.print()` or `system.util.getLogger("debug").info()` or whatever else that works in this specific place for scripting

---

<div class="post-metadata">

**Author:** ![leonardo.godoi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/leonardo.godoi/32/27178_2.png) [@leonardo.godoi](https://forum.inductiveautomation.com/u/leonardo.godoi)\
**Post date:** [February 18, 2025, 11:34am UTC](https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462/2 "2025-02-18T11:34:39Z")

</div>

Tag value changed events execute on the gateway, so your logger information can be found here:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/c/9c43fbf1ba1be07d047b184bf7d4dac8cc8f5407.png)

---

<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:** [February 18, 2025, 11:48am UTC](https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462/3 "2025-02-18T11:48:04Z")

</div>

> I want to see the output of `print()` or `system.perspective.print()` ...

As you've discovered, you can't do that. The tag system has no idea of Console (which is running on the client PC) and no idea about Perspective or which, if any, Perspective projects are running.

> ... or `system.util.getLogger("debug").info()` ...

That's the way to do it, but give a more specific name that "debug". I suggest the name of the project and script (perhaps in abbreviated form) so that you can filter the logs to home in on the entries of interest.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [February 18, 2025, 4:57pm UTC](https://forum.inductiveautomation.com/t/how-to-print-to-console-in-udt-tags-value-events-value-changed-script-for-debugging/102462/4 "2025-02-18T16:57:51Z")

</div>

> **[Script Logging and Print Statement Output Reference | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/platform/scripting/scripting-in-ignition/script-logging-print-statement-output)**
>
> Just as each script has its own events based on location that trigger the script to run, output logging is also dependent on where the script is executed. This page details where to find your print statements and logs to assist with script testing...
