Logging changes on a table to a log