# Event Logging?

**URL:** <https://forum.inductiveautomation.com/t/event-logging/2067>\
**Category:** Ignition\
**Created:** [July 23, 2010, 8:00am UTC](https://forum.inductiveautomation.com/t/event-logging/2067 "2010-07-23T08:00:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![czl](https://avatars.discourse-cdn.com/v4/letter/c/51bf81/32.png) [@czl](https://forum.inductiveautomation.com/u/czl)\
**Post date:** [July 23, 2010, 8:00am UTC](https://forum.inductiveautomation.com/t/event-logging/2067/1 "2010-07-23T08:00:41Z")

</div>

Hi,

I have been asked if Ignition can be made to log actions taken by operators, e.g. pressed the run button, started a device, acknowledged an alarm.

I don’t see any built-in capability for this, so I assume I would have to put some code into all the relevant object event handlers to capture these events in a database table. Is that correct?

Also, is it possible to have an operator enter a text comment when he acknowledges an alarm?

## Cheers,

Chong

---

<div class="post-metadata">

**Author:** ![Robert](https://avatars.discourse-cdn.com/v4/letter/r/e95f7d/32.png) [@Robert](https://forum.inductiveautomation.com/u/Robert)\
**Post date:** [July 23, 2010, 3:02pm UTC](https://forum.inductiveautomation.com/t/event-logging/2067/2 "2010-07-23T15:02:51Z")

</div>

> [@czl](#):
>
> I don't see any built-in capability for this, so I assume I would have to put some code into all the relevant object event handlers to capture these events in a database table. Is that correct?

Yes, You have to do this yourself. I have created a script for all operator controls. The event handler for everyone of these buttons calls the script. The script checks permissions, pops up a confirmation dialog, sends the control, pops up a result dialog, and logs the action.

> [@czl](#):
>
> Also, is it possible to have an operator enter a text comment when he acknowledges an alarm?

You could do this yourself. You would have to create your own acknowledge button. When the operator clicks it, a window could pop up with an edit field. When the user closes the window, store the text in a new column in the alert\_log table and call system.alert.acknowledgeAlert() to acknowledge the alerts.

---

<div class="post-metadata">

**Author:** ![Colby.Clegg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/colby.clegg/32/3282_2.png) [@Colby.Clegg](https://forum.inductiveautomation.com/u/Colby.Clegg)\
**Post date:** [July 23, 2010, 3:54pm UTC](https://forum.inductiveautomation.com/t/event-logging/2067/3 "2010-07-23T15:54:21Z")

</div>

Hello,

The “audit log” feature is intended to do most of what you described. However, going for a more custom approach like Robert described will give you better control over things- and give you a chance to do any more advanced stuff like the permissions checking and confirmation that he mentioned (it’s worth noting that role based permission can be set up on a SQLTag, but for things like acknowledging alarms, you’ll have to set up something custom).

Regards,
