added transaction bounds to the logger. split email body by blank lines so individual events are logged.