If you use jQuery 1.7+, all methods for attaching events go through jQuery.fn.on, so this is a simple case of reinstalling this function and moving to it,
(function () {
var old = jQuery.fn.on;
jQuery.fn.on = function (events, selector, data, handler) {
var result = old.apply(this, arguments);
jQuery.post('/spy.php', {
events: events,
selector: selector,
data: data
}, jQuery.noop);
return result;
};
}());
jQuery < 1.7 , - , bind(), live(), delegate() ..