I want to perform a double integration over a line segment in 2D and I am wondering if can it be done in Mathematica. An added difficulty is that the integral is singular.
$$I = \int_{(4,4)}^{(2,8)}\int_{(4,4)}^{(2,8 )} \log|x-y| \,\mathrm{d}y \, \mathrm{d}x.$$
I am not that concerned with efficiency here, I would just like to have a nice way to integrate these types of integrals compared to how I have to do it in Python which involves analytically regularizing them first to deal with the singular integrands and then transformation to reference intervals before finally coding the actual integration.
So can this be done 'nicely' in Mathematica?
Edit My Mathematica code that gives the incorrect answer:
NIntegrate[
Log[Norm[{x1, x2} - {y1, y2}]],
{x1, x2} ∈ Line[{{4,4},{2,8}}],
{y1, y2} ∈ Line[{{4,4},{2,8}}]
]