In a given MySQL table, every time a row is inserted I need to reformat the data a bit and write a line to a log file. Alternatively, I could write the contents of the inser