# Troubleshooting tag event script suggestions?

**URL:** <https://forum.inductiveautomation.com/t/troubleshooting-tag-event-script-suggestions/26560>\
**Category:** Ignition\
**Created:** [July 15, 2019, 6:50pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-event-script-suggestions/26560 "2019-07-15T18:50:20Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [July 15, 2019, 7:36pm UTC](https://forum.inductiveautomation.com/t/troubleshooting-tag-event-script-suggestions/26560/2 "2019-07-15T19:36:00Z")

</div>

If the tag diagnostics on the tags are not showing any error, then, your best bet is to implement a logger with a try…except structure.

Something like:

```auto
import java.lang.Exception
logger = system.util.getLogger("yourLoggerName")

try:
     #script to attempt
except: java.lang.Exception, e:
     logger.warn("An error occurred" , e)
except Exception, e:
     logger.warnf("An error occurred: %s",e)

```

@pturmel has a PythonAsJavaException class in his [later.py](https://www.automation-pros.com/ignition/later.py) which will allow for more detail in the case of python exceptions

---

_[View the full topic](https://forum.inductiveautomation.com/t/troubleshooting-tag-event-script-suggestions/26560)._
