title: JavaScript event log
body: <p>Is there any way to see which events are being executed with JS.</p>
  
  <p>For example, let's assume I have click event being fired, and then keypress...Now I want to have a log of those fired events.</p>
  
  <p>Is there a way I can get such log of fired events (possibly with function names, but that is optional)?</p>
  
  <p>EDIT:
  I think I need to add a detail to this. I want to log all events. If there is some custom event that I am not aware of, I want to know its name. For that reason I can not monitor only certain events that I am aware of, but also those that I am not.</p>
  
  <p>EDIT 2:
  Log should only contain events for elements on which certain listener is attached. E.g. via <code>$('#test-element').on(...)</code> or <code>testElement.addEventListener(...)</code>. Again, names of events are unknown (don't have to be click/keypress/...).</p>