how do I justify (which I sure is correct since I can evaluat this integral)?
$$\int_0^{\pi/2}\log\sin x\,\mathrm dx+\int_0^{\pi/2}\log\cos x\mathrm dx=\int_0^{\pi/2}(\log\cos x+\log\sin x)\mathrm dx $$
The problem is that I need to provied a proof that$$\int_0^{\pi/2}\log\sin x\,\mathrm dx>-\infty $$
Since $\lim_{x\to 0}(\sin x)/x=1$, we can take $A\in (0, \pi /2]$ such that $x\in (0,A]\implies \sin x>x/2.$ For any $B\in (0,A)$ and any $x\in [B,A]$ we have $0>\log \sin x >\log (x/2)$ so $$0>\int_B^A \log \sin x \;dx>\int^A_B\log (x/2)\;dx=$$ $$=(A\log A-A)-(B\log B-B)-(A-B)\log 2.$$ Now $\lim_{B\to 0^+} B\log B=0.$ So, letting $B\to 0^+$, we have $$0>\int_0^A \log \sin x\;dx\geq \int_0^A\log (x/2)\;dx=$$ $$=A\log A -A-A\log 2>-\infty.$$ And $\log \sin x$ is bounded on $[A,\pi /2].$