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??
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.
@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.
Thanks, I had not used that feature. I'll give a shake down.
system.tag.writeBlocking gets logged, but system.opc.writeValues doesn't.
I think event.name should be a feature request...