add_to_log deprecated, replace with events