Register every click


Im trying to register every click that a user makes in my application. For instance: “user: operator1, action: downloadExcel, date: 20191129”. Is there a way to do it automatically? Or should I code a function that will be called in every screen controller method?

Thanks in advance.

Best regards.


You have to decide what clicks are really important and must be logged, and invoke your logging code in that places.

For example, you may want to log standard actions like “Create”, “Edit” in tables. Then you could create your own classes extending CreateAction, EditAction, etc. and invoke your logging logic before super methods. See Standard Actions for how to create and register your action types. In order to override the types provided by the framework, your type must have the same name, e.g. create.