def METHOD_NAME(sender, instance, created, **kwargs):
    """
    Replaces the `object_repr` with `object.__repr__()`, since most `LogEntry` objects are created
    using `object.__str__()`, and logs the resulting `LogEntry` object
    """
    if created:
        model_class = instance.content_type.model_class()
        obj = model_class.objects.get(id=instance.object_id)
        # Use `_repr` method defined above to get the log entry's formatted representation
        instance.object_repr = _repr(obj, recurse=6, prettyprint=True, starting_depth=1)
        logger.info(
            f"Admin action taken (formatted):\n{_repr(instance, recurse=7, prettyprint=True)}"
        )
        # Also log the unformatted version
        instance.object_repr = _repr(obj, recurse=6, prettyprint=False, starting_depth=1)
        logger.info(
            f"Admin action taken (single line):\n{_repr(instance, recurse=7, prettyprint=False)}"
        )