@utilities.arguments_not_none<EOL><INDENT>def create_log_entry(self, log_entry_form):<DEDENT>
collection = JSONClientValidated('<STR_LIT>',<EOL>collection='<STR_LIT>',<EOL>runtime=self._runtime)<EOL>if not isinstance(log_entry_form, ABCLogEntryForm):<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if log_entry_form.is_for_update():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>try:<EOL><INDENT>if self._forms[log_entry_form.get_id().get_identifier()] == CREATED:<EOL><INDENT>raise errors.IllegalState('<STR_LIT>')<EOL><DEDENT><DEDENT>except KeyError:<EOL><INDENT>raise errors.Unsupported('<STR_LIT>')<EOL><DEDENT>if not log_entry_form.is_valid():<EOL><INDENT>raise errors.InvalidArgument('<STR_LIT>')<EOL><DEDENT>if '<STR_LIT>' not in log_entry_form._my_map or log_entry_form._my_map['<STR_LIT>'] is None:<EOL><INDENT>log_entry_form._my_map['<STR_LIT>'] = DateTime.utcnow()<EOL><DEDENT>log_entry_form._my_map['<STR_LIT>'] = str(self.get_effective_agent_id())<EOL>insert_result = collection.insert_one(log_entry_form._my_map)<EOL>self._forms[log_entry_form.get_id().get_identifier()] = CREATED<EOL>result = objects.LogEntry(<EOL>osid_object_map=collection.find_one({'<STR_LIT>': insert_result.inserted_id}),<EOL>runtime=self._runtime,<EOL>proxy=self._proxy)<EOL>return result<EOL>
Creates a new ``LogEntry``.

        arg:    log_entry_form (osid.logging.LogEntryForm): the form for
                this ``LogEntry``
        return: (osid.logging.LogEntry) - the new ``LogEntry``
        raise:  IllegalState - ``log_entry_form`` already used in a
                create transaction
        raise:  InvalidArgument - one or more of the form elements is
                invalid
        raise:  NullArgument - ``log_entry_form`` is ``null``
        raise:  OperationFailed - unable to complete request
        raise:  PermissionDenied - authorization failure
        raise:  Unsupported - ``log_entry_form`` did not originate from
                ``get_log_entry_form_for_create()``
        *compliance: mandatory -- This method must be implemented.*