Add data to log in proper format