The expectation of the log of the absolute value of a central Cauchy-distributed random variable is given here.
How can this be extended for a non-central case. It is equivalent to finding the following expectation:
$$\mathbb E [\log|\alpha X + \beta|]=\int^{\infty}_{-\infty} {\log\left(\left\vert \alpha x + \beta\right\vert\right) \over \pi(x^{2} + 1)}\,{\rm d}x$$
where $X$ has the standard Cauchy distribution.
For $\beta=0$, we have the nice formula of
$$\mathbb E [\log|\alpha X|]=\log|\alpha|. $$
Using Feymann's trick: $$\int^{\infty}_{-\infty} {\log\left(\left\vert \alpha x + \beta\right\vert\right) \over (x^{2} + 1)}\,{\rm d}x$$ $$\pi\ln\left(\left|\alpha\right|\right)+\int_{-\infty}^{\infty}\frac{\ln\left(\left|x+\frac{\beta}{\alpha}\right|\right)}{x^{2}+1}dx$$ $$s:=\frac{\beta}{\alpha}$$ $$F(s):=\pi\ln\left(\left|\alpha\right|\right)+\int_{-\infty}^{\infty}\frac{\ln\left(\left|x+s\right|\right)}{x^{2}+1}dx$$ $$f(s)=F'(s)=P.V.\int_{-\infty}^{\infty}\frac{1}{(x^{2}+1)(x+s)}dx=-\frac{\pi s}{s^2+1}$$
So
$$\int^{\infty}_{-\infty} {\log\left(\left\vert \alpha x + \beta\right\vert\right) \over \pi(x^{2} + 1)}\,{\rm d}x=\ln\left(\left|\alpha\right|\right)+\frac{1}{2}\ln\left(\left(\frac{\beta}{\alpha}\right)^{2}+1\right)$$ $$\color{blue}{\int^{\infty}_{-\infty} {\log\left(\left\vert \alpha x + \beta\right\vert\right) \over \pi(x^{2} + 1)}\,{\rm d}x=\ln\left(\sqrt{\alpha^{2}+\beta^{2}}\right)}$$
For $\beta=0$ you have your known formula