Added event_detail and write_log methods

I recently needed to add the below methods to add and retrieve event log entries. Wondered if they might be useful for others.