# Script logging from clients

**URL:** <https://forum.inductiveautomation.com/t/script-logging-from-clients/4955>\
**Category:** Ignition\
**Created:** [August 8, 2012, 9:50am UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955 "2012-08-08T09:50:37Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [August 8, 2012, 9:50am UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/1 "2012-08-08T09:50:37Z")

</div>

Hi. Where can I get output from scripts running in the client? Ideally stdout (using ‘print’), but using a logger (log4j?) would be acceptable.

Thanks.

---

<div class="post-metadata">

**Author:** ![Step7](https://avatars.discourse-cdn.com/v4/letter/s/45deac/32.png) [@Step7](https://forum.inductiveautomation.com/u/Step7)\
**Post date:** [August 8, 2012, 2:13pm UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/2 "2012-08-08T14:13:18Z")

</div>

Not sure of exactly what you want to do, but I include extensive logging with line numbers using this code:

```auto
import sys
frame = sys._getframe(0)
logtext+= "Line %d, Log Text "% (frame.f_lineno)
```

I pass it to a string variable, and then write it to a text file every few minutes.

---

<div class="post-metadata">

**Author:** ![James.Lorenz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/james.lorenz/32/3290_2.png) [@James.Lorenz](https://forum.inductiveautomation.com/u/James.Lorenz)\
**Post date:** [August 8, 2012, 3:25pm UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/3 "2012-08-08T15:25:05Z")

</div>

The standard output for the client is found by going to Help -\> Diagnostics under the Console tab.

---

<div class="post-metadata">

**Author:** ![systemparadox](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@systemparadox](https://forum.inductiveautomation.com/u/systemparadox)\
**Post date:** [August 9, 2012, 7:38am UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/4 "2012-08-09T07:38:28Z")

</div>

Thanks.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [April 5, 2018, 11:57pm UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/5 "2018-04-05T23:57:50Z")

</div>

Is this logged to a file anywhere? If so, what is the default path? I assumed it would be in the Users-\>-\>.ignition folder, but nothing jumps out at me in there

---

<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:** [April 6, 2018, 2:14pm UTC](https://forum.inductiveautomation.com/t/script-logging-from-clients/4955/6 "2018-04-06T14:14:55Z")

</div>

If you enable tracing or logging from the Java Control Panel, log files will be generated in a local directory:  
[https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/tracing\_logging.html](https://docs.oracle.com/javase/7/docs/technotes/guides/jweb/jcp/tracing_logging.html)  
For me, on Windows, it’s `C:\Users\pgriffith\AppData\LocalLow\Sun\Java\Deployment\log`.
