Updating logging extension methods to return event object.