return the function call result via event. display function call evenst in logging