Update log_event to use sprintf to apply additional parameters to string arguments