Changed add_to_log to events api