Adding a functioning Repository#log_event! method