Add logging

this will create a yaml string of message that will stay a yaml string after un-serializing the record entry as well. Is this intended?