def logged_insert(self, user):
<EOL>self.insert()<EOL>entry = ChangeLogEntry({<EOL>'<STR_LIT:type>': '<STR_LIT>',<EOL>'<STR_LIT>': [self],<EOL>'<STR_LIT:user>': user<EOL>})<EOL>entry.insert()<EOL>return entry<EOL>
Create and insert the document and log the event in the change log