Step 2: Recognise the derivative
We know $\dfrac{d}{dx}\log\tan\left(\dfrac\pi4+\dfrac x2\right)=\sec x$.
Step 3: Use the standard form
The integrand has the form $\dfrac{g'(x)}{g(x)}$, so the integral is $\log|g(x)|+c$.
Final Answer:
The integral is $\log|\log|\tan(\frac\pi4+\frac x2)||+c$.
\[ \boxed{\text{(C) }\log |\log |\tan \left(\dfrac{\pi }{4}+\dfrac{x}{2}\right)||+c} \]