Added logRecord to Document as a serializable field. Fixed infinite loop
when dealing with nested fields.