I am looking for help with doing the following integral : $$\frac{1}{2\pi i}\int_{1}^{\infty}\ln\left(\frac{1-e^{-2\pi i x}}{1-e^{2\pi i x}} \right )\frac{dx}{x\left(\ln x+z\right)}\;\;\;\;z\in \mathbb{C}$$ i tried to transform it into a complex integral along a 'keyhole contour', with a branch cut along the +ive real line $\left[1,\infty\right)$. but then $\;\ln x\;$ would be transformed into $\;\ln x+2\pi i\;$ when doing the integral along the segment parallel to and below $\left(\infty,1\right]\;$ which doesn't add up nicely to the portion along the segment parallel to and above $\left[1,\infty\right)$ . any insights are appreciated.
EDIT:
the above integral is equivalent to: $$\int_{1}^{\infty}\sum_{n=1}^{\infty}\frac{\sin(2\pi n x)}{n\pi}\left(\frac{1}{x\left(\ln x+z\right)}\right)dx$$ And $$\int_{1}^{\infty}\left(\frac{1}{2}-x+\left \lfloor x \right \rfloor \right )\left(\frac{1}{x\left(\ln x+z\right)}\right)dx$$ Also, we can prove that it's equivalent to the limit: $$e^{-z}\text{Ei}(z)+\lim_{N\rightarrow \infty}\sum_{n=1}^{N}\left(n+\frac{1}{2} \right )\ln\left(\frac{\ln(n+1)+z}{\ln(n)+z} \right )-e^{-z}\text{Ei}(z+\ln (N+1)) $$ or: $$e^{-z}\text{Ei}(z)-\frac{3}{2}\ln(z)-\left(\lim_{N\rightarrow \infty}\sum_{n=1}^{N}\ln\left(\ln(n+1)+z \right )+e^{-z}\text{Ei}\left(\ln (N+1) + z\right)-\frac{2N+1}{2}\ln(\ln(N+1)+z)\right)$$ EDIT: using the definition of the zeta function - eq. 3 - : $$\zeta(s)=\frac{s}{s-1}-s\int_{1}^{\infty}(x-\left \lfloor x \right \rfloor )x^{-s-1}dx\;\;\;\;\;\Re(s)>0$$ We have: $$\frac{\zeta(s)}{s}+\frac{1}{2s}-\frac{1}{s-1}=\int_{1}^{\infty}\left(\frac{1}{2}-x+\left \lfloor x \right \rfloor\right)x^{-s-1}dx$$ And: $$\int_{1}^{\infty}\left(\frac{1}{2}-x+\left \lfloor x \right \rfloor \right )\left(\frac{1}{x\left(\ln x+z\right)}\right)dx=\int_{0}^{\infty}\left(\frac{\zeta(s)}{s}+\frac{1}{2s}-\frac{1}{s-1}\right)e^{-zs}ds$$