This is a rather subtle matter.
First thing is that to make sure we are talking sense, we should talk about antiderivatives on a specific interval. For example, we should not just say "$F(x)$ is an antiderivative of $f(x)$", but something like "$F(x)$ is an antiderivative of $f(x)$ for $1<x<2$".
Now if $x$ takes positive values then the derivative of $\ln x$ is $x^{-1}$. So we can say
$\ln x$ is an antiderivative of $x^{-1}$ for $x>0$.
On the other hand, if $x$ takes negative values then the derivative of $\ln(-x)$ is $x^{-1}$: you can check this by differentiation. So we can say
$\ln(-x)$ is an antiderivative of $x^{-1}$ for $x<0$.
Now if $x$ is positive then $x=|x|$, and if $x$ is negative then $-x=|x|$, so both our logarithm expressions above can be written as $\ln|x|$. We can therefore say
$\ln|x|$ is an antiderivative of $x^{-1}$ on any interval consisting of positive or negative $x$ values.
But. . . the matter starts to get seriously dodgy if we try to include both positive and negative $x$ values at the same time: because then to get an interval of $x$ values we would also have to include $x=0$, and neither $\ln|x|$ nor $x^{-1}$ makes sense if $x=0$.
In my view, writing the antiderivative as $\ln|x|$ is a neat way of summarising two results in one, but it carries a serious risk of disguising what is really going on. So my preference, if I have an integral giving $\ln(\hbox{something})$, is to work out whether the "something" is negative or positive, and put in a minus sign, or not, as appropriate.