I’m working with a large ZK / Spring application and would like to know if I can somehow add trace style logging to all of the UI elements, but without adding log statements to each individual element. (I want to be able to trace through events that are initiated from the UI.)
Thanks!
Assuming you want to log all UI events on the server side, please implement an EventInterceptor like this
and then configure it in your zk.xml as below (refer here for more details)
For a simple zul file like this
then clicking on helloBtn will generate following log on server console