# Perspective and Designer Output Console. Does It Work?

**URL:** <https://forum.inductiveautomation.com/t/perspective-and-designer-output-console-does-it-work/55933>\
**Category:** Ignition\
**Tags:** ignition81, scripting\
**Created:** [February 9, 2022, 6:40pm UTC](https://forum.inductiveautomation.com/t/perspective-and-designer-output-console-does-it-work/55933 "2022-02-09T18:40:59Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![claude.hager](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/claude.hager/32/24043_2.png) [@claude.hager](https://forum.inductiveautomation.com/u/claude.hager)\
**Post date:** [February 9, 2022, 6:40pm UTC](https://forum.inductiveautomation.com/t/perspective-and-designer-output-console-does-it-work/55933/1 "2022-02-09T18:40:59Z")

</div>

I have a Perspective View that contains a button with an “onActionPerformed” script attached to it. The script is a simple print statement, which I hoped would display in the Designer Output Console.

```auto
def runAction(self, event):
	"""
	This event is fired when the 'action' of the component occurs.

	Arguments:
		self: A reference to the component that is invoking this function.
		event: An empty event object.
	"""
	print "Did this work?"

```

It did not. Or on the Gateway Log. Nope. It did add a text entry to the wrapper.log file on the server. If my script generates a Jython stack trace, however, I DO see that in the Output Console, so clearly Perspective can send at least some output to it.

I did find that I could create my own logger with system.util.getLogger and then use it to send things to the Gateway Log. That works, but am I missing something super easy here? And as a follow on question, is everything in Perspective Gateway scoped since there isn’t a “client” per se?

---

<div class="post-metadata">

**Author:** ![kvane](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kvane/32/22228_2.png) [@kvane](https://forum.inductiveautomation.com/u/kvane)\
**Post date:** [February 9, 2022, 6:52pm UTC](https://forum.inductiveautomation.com/t/perspective-and-designer-output-console-does-it-work/55933/2 "2022-02-09T18:52:16Z")

</div>

You are looking for **system.perspective.print()**  
[https://docs.inductiveautomation.com/display/DOC81/system.perspective.print](https://docs.inductiveautomation.com/display/DOC81/system.perspective.print)

> is everything in Perspective Gateway scoped since there isn’t a “client” per se?

Perspective's Browser-Based Sessions are hosted on the Gateway, correct.

---

<div class="post-metadata">

**Author:** ![claude.hager](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/claude.hager/32/24043_2.png) [@claude.hager](https://forum.inductiveautomation.com/u/claude.hager)\
**Post date:** [February 9, 2022, 7:05pm UTC](https://forum.inductiveautomation.com/t/perspective-and-designer-output-console-does-it-work/55933/3 "2022-02-09T19:05:46Z")

</div>

Awesome! And thank you.
