I obtained the integral
$$\int_0^1 \frac{\ln(\sqrt2-1)-\ln(x)(\sqrt2-x)}{(\sqrt2-x)^2-1}\,dx=\frac{\pi^2}6+\frac14\ln^2(\sqrt2-1) $$
as a by-product while carrying out some complex analysis on an engineering problem. In short, given the real nature of the physical outcome, the imaginary part of the final expression has to vanish, which implies the result above and is numerically verifiable.
However, the complex method employed is not intended to solve integrals such as this and produces it merely by accident. So, the question is: How to derive this elementary close-form directly, with real methods?
Note that the integrand may not look as innocent as it appears. There is a hole as the denominator becomes zero at $x=\sqrt2-1$ and the term $\ln(\sqrt2-1)$ is present in the numerator to remove the singularity, thus ensuring convergence.
We have \begin{align} I &\equiv \int \limits_0^1 \frac{\log(\sqrt{2}-1) - (\sqrt{2}-x)\log(x)}{(\sqrt{2}-x)^2-1} \, \mathrm{d} x \\ &= \int \limits_0^1 \frac{- (\sqrt{2} - 1 -x) \log(\sqrt{2}-1) - (\sqrt{2}-x)\log\left(\frac{x}{\sqrt{2}-1}\right)}{(\sqrt{2}-x)^2-1} \, \mathrm{d} x \\ &= -\log(\sqrt{2}-1) \int \limits_0^1 \frac{\mathrm{d} x}{1 + \sqrt{2} - x} + J = \log^2(1+\sqrt{2}) - \log(1 + \sqrt{2}) \log(\sqrt{2}) + J \, , \end{align} where \begin{align} J &= \int \limits_0^1 \frac{-\log\left(\frac{x}{\sqrt{2}-1}\right) (\sqrt{2}-x) }{(\sqrt{2}-x)^2-1} \, \mathrm{d} x \\ &= \int \limits_0^{\sqrt{2}-1} \frac{-\log\left(\frac{x}{\sqrt{2}-1}\right) (\sqrt{2}-x) }{(\sqrt{2}-x)^2-1} \, \mathrm{d} x + \int \limits_{\sqrt{2}-1}^1 \frac{-\log\left(\frac{x}{\sqrt{2}-1}\right) (\sqrt{2}-x) }{(\sqrt{2}-x)^2-1} \, \mathrm{d} x \\ &\!\!\stackrel{\text{IBP}}{=}\frac{1}{2} \int \limits_0^{\sqrt{2}-1} \frac{-\log[(\sqrt{2} - x)^2 - 1]}{x} \, \mathrm{d} x - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \\ &\phantom{=} ~ + \frac{1}{2} \int \limits_{\sqrt{2}-1}^1 \frac{-\log[1 - (\sqrt{2} - x)^2]}{x} \, \mathrm{d} x \\ &= \frac{1}{2} \int \limits_0^1 \frac{-\log(\lvert (\sqrt{2}-x)^2 - 1\rvert)}{x} \, \mathrm{d} x - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \\ &= \frac{1}{2} \int \limits_0^1 \frac{-\log\left[\left\lvert 1 - \frac{x}{\sqrt{2}-1}\right\rvert \left(1 - \frac{x}{1 + \sqrt{2}}\right)\right]}{x} \, \mathrm{d} x - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \\ &= \frac{1}{2} \int \limits_0^1 \frac{-\log\left(1 - \frac{x}{1 + \sqrt{2}}\right)}{x} \, \mathrm{d} x + \frac{1}{2} \int \limits_{\sqrt{2}-1}^1 \frac{-\log\left(\frac{x}{\sqrt{2} - 1} - 1\right)}{x} \, \mathrm{d} x \\ &\phantom{=} ~ + \frac{1}{2} \int \limits_0^{\sqrt{2}-1} \frac{-\log\left(1 - \frac{x}{\sqrt{2} - 1}\right)}{x} \, \mathrm{d} x - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \, . \end{align} Now let $x = (1 + \sqrt{2}) t$ in the first, $x = \frac{\sqrt{2} - 1}{t}$ in the second and $x = (\sqrt{2} - 1) t$ in the third integral. This yields \begin{align} J &= \frac{1}{2} \int \limits_0^{\sqrt{2} - 1} \frac{-\log(1-t)}{t} \, \mathrm{d} t + \frac{1}{2} \int \limits_{\sqrt{2}-1}^1 \frac{-\log\left(\frac{1}{t} - 1\right)}{t} \, \mathrm{d} t + \frac{1}{2} \int \limits_0^1 \frac{-\log(1-t)}{t} \, \mathrm{d} t \\ &\phantom{=} ~ - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \\ &= \int \limits_0^1 \frac{-\log(1-t)}{t} \, \mathrm{d} t - \frac{1}{4} \log^2(1 + \sqrt{2}) - \frac{1}{2} \log(1+\sqrt{2}) \log \left(\frac{1+\sqrt{2}}{2}\right) \\ &= \frac{\pi^2}{6} - \frac{3}{4} \log^2(1+\sqrt{2}) + \log(1+\sqrt{2}) \log(\sqrt{2}) \, , \end{align} so $$ I = \frac{\pi^2}{6} + \frac{1}{4} \log^2 (1 + \sqrt{2}) \, . $$
A similar calculation yields the more general integral \begin{align} f(a) &\equiv \int \limits_0^1 \frac{\log(a) - \log(x) (1 + a -x)}{(1 + a - x)^2 - 1} \, \mathrm{d} x \\ &= \frac{\pi^2}{6} - \log(\sqrt{a}) \log \left(\frac{(1-a)(2+a)}{(1+a)\sqrt{a}}\right) + \frac{1}{2} \left[\operatorname{Li}_2 \left(\frac{1}{2+a}\right) - \operatorname{Li}_2(a)\right] \end{align} for $a \in (0,1]$. While special values like $f(1) = \frac{\pi^2}{12} + \frac{1}{2} \operatorname{Li}_2 \left(\frac{1}{3}\right)$ are reasonably nice, the polylogarithms only cancel for $a = \sqrt{2} - 1$, leading to the particularly simple expression for $I = f(\sqrt{2} - 1)$.