Help! Totally stuck up with this limit.. I don't even know where to start with this
$$\displaystyle\lim_{x \rightarrow \frac{\pi}{6}} (2+\cos {6x})^{\ln |\sin {6x}|}$$
Please help me out (Hints in the right direction would be appreciated)

$$\lim_{x \rightarrow \frac{\pi}{6}} (2+\cos {6x})^{\ln |\sin {6x}|}=
\lim_{t \rightarrow 0} (2+(-1))^{\ln |t|}=\lim_{t \rightarrow 0} 1^{\ln |t|}=\lim_{t \rightarrow 0} 1=1$$
EDIT: The procedure above is not correct because it has $1^\infty$ indeterminate step.
I will follow the correct procedure as shown in Michael Hardy's answer.
Let $x=\pi/6-t/6$, then the limit becomes
$$\lim_{t \rightarrow 0} (2-\cos {t})^{\ln |\sin {t}|}$$
We first consider
$$\lim_{t \rightarrow 0^{+}} (2-\cos t)^{\ln \sin t}=:\lim_{t \rightarrow 0^{+}}f(t)^{g(t)}$$
$$\lim_{t \rightarrow 0^{+}}g(t)\ln f(t)=\lim_{t \rightarrow 0^{+}}{(\ln \sin t})(\ln(2-\cos t))=\lim_{t \rightarrow 0^{+}}((1/2)t^2\ln t)=0=:L$$
Therefore:
$$\lim_{t \rightarrow 0^{+}}f(t)^{g(t)}=\lim_{t \rightarrow 0^{+}}\exp(L)=1$$
$\lim_{t \rightarrow 0^{-}} f(t)^{g(t)}$ can be considered in a similar fashion.
