We are going to find a reduction formula for the integral
$$ J_n=\int_{0}^{\frac{\pi}{2}} \ln ^{n}(\cos \theta) d \theta $$
In my post, I had found a reduction formula for the integral $$I_n=\int_{0}^{\infty} \frac{\ln ^{n}\left(1+x^{2}\right)}{1+x^{2}} d x$$ as
$$\boxed{I_n= 2 \ln 2 I_{n-1}+ (n-1)!\sum_{k=0}^{n-2} \frac{2^{n-k}-2}{k!}\zeta(n-k) I_k} \tag*{(*)} $$ Letting $x\mapsto \tan(\theta)$, $$ \begin{aligned} I_{n} =\int_{0}^{\frac{\pi}{2}} \frac{\ln ^{n}\left(\sec ^{2} \theta\right)}{1+\tan ^{2} \theta} \cdot \sec ^{2} \theta d \theta &=(-2)^{n} J_n \end{aligned} $$
Putting $I_n$ into (*) yields $$ \begin{aligned} (-2)^{n}J_n&= 2 \ln 2(-2)^{n-1} J_{n-1} + (n-1) !\sum_{k=0}^{n-2} \frac{2^{n-k}-2}{k_ !} \zeta(n-k) (-2)^{k} J_k \\J_n&= -\ln 2 J_{n-1} + (n-1) !\sum_{k=0}^{n-2} \frac{(-1)^{n-k}}{k !} \left(1-\frac{1}{2^{n-k-1}} \right)\zeta(n-k) J_k \end{aligned} $$ For example, $$ \begin{aligned} \int_{0}^{\frac{\pi}{2}} \ln ^{2}(\cos \theta )d \theta&=-\ln 2 J_{1}+\frac{1}{2} \zeta(2) J_{0} \\ &=-\ln 2\left(-\frac{\pi}{2} \ln 2\right)+\frac{1}{2} \zeta(2) J_{0} \\ &=\frac{\pi \ln ^{2} 2}{2}+\frac{\pi^{3}}{24} \end{aligned} $$
My Question Is there any other closed form for the integral?