Suppose that $p\geq 1.$ This post shows that the following integral $$\int_0^\infty \frac{1}{x ((\ln x)^2+1)^p} dx$$ converges for $p.$
Question: Suppose that $q\geq 1$ such that $q \neq p.$ Is it true that $$\int_0^\infty \left|\frac{1}{x^{1/p} ((\ln x)^2+1)}\right|^q dx$$ is divergent?
I am aiming to obtain a function $g$ such that $$g(x) \leq \frac{1}{x^{q/p}((\ln x)^2+1)^q}$$ and $\int_0^\infty g(x)\,dx=\infty.$ However, I fail to obtain such $g.$
Any hint would be appreciated.