Given the equation
$$\left|{\cos{\left(x \right)}}\right| - 1 = \log{\left(\left|{x}\right| \right)}$$
transform
$$- \log{\left(\left|{x}\right| \right)} + \left|{\cos{\left(x \right)}}\right| - 1 = 0$$
$$\left(\left|{\cos{\left(x \right)}}\right| - 1\right) - \log{\left(\left|{x}\right| \right)} = 0$$
Do replacement
$$w = \left|{x}\right|$$
Given the equation
$$- \log{\left(w \right)} + \left|{\cos{\left(x \right)}}\right| - 1 = 0$$
$$- \log{\left(w \right)} = 1 - \left|{\cos{\left(x \right)}}\right|$$
Let's divide both parts of the equation by the multiplier of log =-1
$$\log{\left(w \right)} = \left|{\cos{\left(x \right)}}\right| - 1$$
This equation is of the form:
log(v)=p
By definition log
v=e^p
then
$$w = e^{\frac{1 - \left|{\cos{\left(x \right)}}\right|}{-1}}$$
simplify
$$w = e^{\left|{\cos{\left(x \right)}}\right| - 1}$$
do backward replacement
$$\left|{x}\right| = w$$
substitute w: