beautify logging of event handlers