# User interaction logging

**URL:** <https://forum.inductiveautomation.com/t/user-interaction-logging/71661>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [March 27, 2023, 6:27pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661 "2023-03-27T18:27:52Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kfoldesi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfoldesi/32/11327_2.png) [@Kfoldesi](https://forum.inductiveautomation.com/u/Kfoldesi)\
**Post date:** [March 27, 2023, 6:27pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/1 "2023-03-27T18:27:52Z")

</div>

I want to log what the operator is doing:

def Log(self,Para):  
msg = str(self.session.props.host) + '/'  
msg += str(self.page.props.title)  
msg += str(self.page.props.path) + '/'  
try: msg += str(self.parent.parent.meta.name) + '/'  
except: msg = msg  
try: msg += str(self.parent.meta.name) + '/'  
except: msg = msg  
msg += self.meta.name + ' "' + Para + '"'  
logger = system.util.getLogger("Ancos")  
logger.info(str(Para))

instead of calling this sub like:  
MyFunc.Log(self,'onClick')

Can I get the name of event - I don't want to type the event name in every subroutine.  
event.meta.name??

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [March 27, 2023, 6:47pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/2 "2023-03-27T18:47:42Z")

</div>

Any reason you can't use auditing?

[https://docs.inductiveautomation.com/display/DOC81/Audit+Log+and+Profiles](https://docs.inductiveautomation.com/display/DOC81/Audit+Log+and+Profiles)

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [March 27, 2023, 6:58pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/3 "2023-03-27T18:58:56Z")

</div>

Would that record things like User engaged with `onClick` extension function of a buttoner (or other extension functions)? There is `system.util.audit` but feels like you'd run into the same issue where every extension function you'd have to manually code what the ACTION is.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [March 27, 2023, 7:24pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/4 "2023-03-27T19:24:48Z")

</div>

@Kfoldesi, tip: use the \</\> code formatting button to preserve indents and apply syntax highlighting. There's an edit pencil icon below your post so you can fix it.

---

<div class="post-metadata">

**Author:** ![Kfoldesi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfoldesi/32/11327_2.png) [@Kfoldesi](https://forum.inductiveautomation.com/u/Kfoldesi)\
**Post date:** [March 27, 2023, 7:28pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/5 "2023-03-27T19:28:36Z")

</div>

Thanks, I had not used that feature. I'll give a shake down.

---

<div class="post-metadata">

**Author:** ![Kfoldesi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kfoldesi/32/11327_2.png) [@Kfoldesi](https://forum.inductiveautomation.com/u/Kfoldesi)\
**Post date:** [March 29, 2023, 1:40pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/6 "2023-03-29T13:40:33Z")

</div>

system.tag.writeBlocking gets logged, but system.opc.writeValues doesn't.  
I think event.name should be a feature request...

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [March 29, 2023, 2:03pm UTC](https://forum.inductiveautomation.com/t/user-interaction-logging/71661/7 "2023-03-29T14:03:58Z")

</div>

> **[Inductive Automation Feedback](https://ideas.inductiveautomation.com/)**
>
> Give feedback to the Inductive Automation team so we can make more informed product decisions. Powered by Canny.
