I was motivated by the integral $\displaystyle \int_0^{\pi/12} \ln\tan(x)\,dx$ which was posted here which is equal to $-\frac{2}{3}G$ where is $G$ is Catalan's constant. With this motivation I came up with a result
$$\int_0^{\pi/24}\ln\tan x\,dx=\pi\ln\left(\frac{G\left(\frac{25}{24}\right)G\left(\frac{35}{24}\right)}{G\left(\frac{13}{24}\right)G\left(\frac{23}{24}\right)}\right)-\frac{\pi}{24}\ln\left(\frac{4096\pi^{12}}{\sqrt{2-\sqrt{3}}\left(2+\sqrt{2+\sqrt{3}}\right)^5}\right)$$Notation: $G$ denotes Barnes G-function.
Since Wolfram cannot generate the closed form however, the closed form obtained as per the WA check is found to be correct.
Moreover, I came up with following inequality, the close upper bound of the integral, surprisingly in terms of $ e$ and $G$ which is as follows.
$$\bigg|\int_0^{\pi/24}\ln\tan x \,dx\bigg| < \frac{e^{-1}}{G}\cdots (1)$$ Notation: $e$ denotes Euler's number.
Now I'm curious to know,
$\bullet$ Can we generalize the integral
$$\int_0^{\pi/p} \ln \tan x \,dx\, =\text{?} \; \; p\neq 0 $$
$\bullet$ How to prove $(1)$ using the inequality theorem?
Thank you
Just approximations.
Concerning the integral
$$I(t)=\int_0^t \log (\tan (x))\,dx$$ $$I=\tan ^{-1}(\tan (t)) \log (\tan (t))+\frac{i}{2} (\text{Li}_2(i \tan (t))-\text{Li}_2(-i \tan (t)))$$
Since $t$ is supposed to be small, I should use $$I(t)=-t (1-\log (t))+\frac {t^2}9 \sum_{i=1}^\infty \frac{a_i}{b_i}\, t^{2i-1} $$ where the first coefficients are $$\left( \begin{array}{ccc} i & a_i & b_i \\ 1 & 1 & 1 \\ 2 & 7 & 50 \\ 3 & 62 & 2205 \\ 4 & 127 & 18900 \\ 5 & 146 & 81675 \\ 6 & 1414477 & 2766889125 \\ 7 & 32764 & 212837625 \\ 8 & 16931177 & 351486135000 \\ 9 & 11499383114 & 740606614122375 \\ 10 & 91546277357 & 17865510428390625 \end{array} \right)$$
Using $t=\frac \pi {24}$ this gives as a result $-0.39681136139214865267218614585540$ while the exact result should be $-0.39681136139214865267218614585537$
Edit
Another possibility is to let $\tan(x)=u$ to make $$I(t)=\int_0^{\tan ^{-1}(t)} \frac{\log (u)}{u^2+1}\,du= \tan ^{-1}(u)\log (u)+\frac{i}{2} (\text{Li}_2(i u)-\text{Li}_2(-i u))$$ and use $$\frac{i}{2} (\text{Li}_2(i u)-\text{Li}_2(-i u))=\sum_{n=0}^\infty \frac{(-1)^{n+1}}{(2 n+1)^2} u^n$$ which has the merit to be alternating.
More compact and exact will be $$\color{red}{I(t)=\tan ^{-1}\left(\tan ^{-1}(t)\right) \log \left(\tan ^{-1}(t)\right)-\frac{1}{4} \tan ^{-1}(t)\, \Phi \left(-\tan ^{-1}(t)^2,2,\frac{1}{2}\right)}$$ where appears the Lerch transcendent function.