Solution with no De-L'Hopital, Taylor Expansions or assymptotic equalities but assuming the limit exists:
First prove that
$$\lim_{x\rightarrow0}\frac{\ln(\cos x)}{x}=0$$
This follows from the fact that
$$\lim_{x\rightarrow0}\frac{\ln(\cos x)}{x}=\lim_{x\rightarrow0}\frac{\ln(\cos x)-\ln(\cos 0)}{x}=(\ln(\cos x))^{\prime}(0)$$
Now define
$$f(x)=\begin{cases}\frac{\ln(\cos x)}{x}& x\neq 0\\
0& x=0\end{cases}$$
$f$ is continuous everywhere and differentiable at least in $\mathbb{R}^*$
Observe that
$$\lim_{x\rightarrow0}\frac{\ln(\cos x)}{x^2}=\lim_{x\to 0}\frac{f(x)-f(0)}{x}$$
and so we need to evaluate $f^{\prime}(0)$ (after proving its existence).
We state:
$$\lim_{x\to 0}\frac{f(x)-f(0)}{x}=\lim_{x\to 0}f^{\prime}(x)$$
Indeed, by the Mean Value Theorem for $x>0$, $\exists \xi_x\in (0,x)$ so that $$f^{\prime}(\xi_x)=\frac{f(x)-f(0)}{x}$$
Letting $x\to 0^+$, $\xi\to 0^+$ and so $$\lim_{x\to 0^+}f^{\prime}(x)=\lim_{x\to 0^+}\frac{f(x)-f(0)}{x}$$
Similarly for $x<0$ (the above is done assuming $\lim_{x\to 0}f^{\prime}(x)$ exists).
It remains to show $\lim_{x\to 0}f^{\prime}(x)$ exists and to evaluate it. Showing existence will not be trivial as the limit $\lim_{x\to 0}\frac{\cos x}{x^2}$ re-appears, albeit with a minus sign. Assuming the existence of $\lim_{x\to 0}\frac{\cos x}{x^2}$ however, one can easily evaluate it as
$$\lim_{x\to 0}\frac{\cos x}{x^2}=\lim_{x\to 0}f^{\prime}(x)$$
(the last limit will have a term $-\lim_{x\to 0}\frac{\cos x}{x^2}$ and another easy limit. Pair up $\lim_{x\to 0}\frac{\cos x}{x^2}$ and you will be done
Of course if the existence is not assumed, one would have to use other trickery.