# Logger output in script console

**URL:** <https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302>\
**Category:** Ignition\
**Created:** [October 22, 2019, 9:20pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302 "2019-10-22T21:20:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [October 22, 2019, 9:20pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/1 "2019-10-22T21:20:52Z")

</div>

Hi,  
i want to ask if theres a possibility to have the logoutput in script console?  
Or do you have any idea how to do? Some ConsoleAppender? Or redirect?

br,

 ![2019-10-22%2023_19_17-Script%20Console](https://us1.discourse-cdn.com/inductiveautomation/original/2X/1/11885f5b171468a22cc807baa58a2ed3d691c4a0.png)

Roland

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 22, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/2 "2019-10-22T21:35:38Z")

</div>

If you use  
`print("Your message here")`  
it will print the message in the script console and the debug console if used in a client session.

---

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [October 22, 2019, 9:37pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/3 "2019-10-22T21:37:37Z")

</div>

hi ryan,

thanks for answer, but i want to know if it is possible to have the logoutput there, this would make it easier to develop function in console without writing "logger.debug(“sefs”) and print “sefs”

you understand? 🙂  
br,  
Roland

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [October 22, 2019, 9:40pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/4 "2019-10-22T21:40:29Z")

</div>

Did you look at the diagnostic console while running that script in the script console?

---

<div class="post-metadata">

**Author:** ![roland.scheuer](https://avatars.discourse-cdn.com/v4/letter/r/c57346/32.png) [@roland.scheuer](https://forum.inductiveautomation.com/u/roland.scheuer)\
**Post date:** [October 22, 2019, 9:42pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/5 "2019-10-22T21:42:52Z")

</div>

Hi pturmel,

yes i know there is the logoutput, but still would be great it will log there also. If you are on a Laptop with only 1 Monitor it would be much easier. I guess there is no possibility.

br,  
Roland

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 22, 2019, 10:04pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/6 "2019-10-22T22:04:10Z")

</div>

> [@roland.scheuer](#):
>
> If you are on a Laptop with only 1 Monitor it would be much easier

But... the Output Console is on the same screen as the Script Console...

 ![46%20PM](https://us1.discourse-cdn.com/inductiveautomation/original/2X/3/3fc8f0b64ef7102e72b1d5e54328bb968ff39086.png)  
I understand it's not actually printing to the Script Console, but you can still see what it's doing.

---

<div class="post-metadata">

**Author:** ![justin.brzozoski](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justin.brzozoski/32/13452_2.png) [@justin.brzozoski](https://forum.inductiveautomation.com/u/justin.brzozoski)\
**Post date:** [January 23, 2020, 2:51pm UTC](https://forum.inductiveautomation.com/t/logger-output-in-script-console/29302/7 "2020-01-23T14:51:39Z")

</div>

Sorry to resurrect a stale thread…

I swear logging from the script console normally works. This thread seems to agrees with me. But for some reason, right now, if I open a script console and run these two lines, I get no errors and no output:

```auto
l = system.util.getLogger("TestLog")
l.error("Log this please")

```

I’m not seeing any logging output in the gateway webview or looking directly at the wrapper.log file on the sever.

I tried rebooting the Ignition server, but it still doesn’t work.

Is there something obvious I’m missing?

EDIT: Never mind, the answer was up above … it goes to the designer’s console screen instead of the gateway log… Doh!
