Added optional next callback to log event. Changed empty dummy functions to point to nextToNowhere dummy function in pub.utils.