Does $$\int_{[1,z]}\frac{1}{u}du=\log(z)$$ where $z\in\mathbb C$ ? I know that on a closed circle that contain $0$ we have $$\int_C\frac{1}{z}dz=2i\pi=\log(1),$$
but for $$\int_{[1,z]}\frac{1}{u}du=\log(z)$$ I don't really know to compute the integral.
If $\log(z)$ is the main branch of the logarithm, then, yes, it is true. Of course, I am assuming that $[1,z]$ is that path $t\mapsto 1+t(z-1)$ ($[t\in[0,1]$).
Let $L(z)=\int_{[1,z]}\frac1u\,\mathrm du$. Then $L$ is differentiable and $L'(z)=\frac1z$. This is so because, by Morera's theorem,$$L(z+h)-L(z)=\int_{[1,z+h]}\frac1u\,\mathrm du-\int_{[1,z]}\frac1u\,\mathrm du=\int_{z,z+h}\frac1u\,\mathrm du$$and therefore\begin{align}\lim_{h\to0}\frac{L(z+h)-L(z)-\frac hz}h&=\lim_{h\to0}\frac{\int_{[z,z+h]}\frac1u\,\mathrm du-\frac hz}h\\&=\lim_{h\to0}\frac{\int_{z,z+h}\frac1u-\frac1z\,\mathrm dz}h.\end{align}Now, take $\varepsilon>0$. Fix a $\delta>0$ such that $|w-z|<\delta\implies\left|\frac1w-\frac1z\right|<\varepsilon$. Then, if $|h|<\delta$,$$\left|\frac{\int_{z,z+h}\frac1u-\frac1z\,\mathrm dz}h\right|\leqslant\frac{|h|\varepsilon}{|h|}=\varepsilon.$$So, this proves that$$\lim_{h\to0}\frac{L(z+h)-L(z)-\frac hz}h=0,$$which means that $L'(z)=\frac1z$.
Now, I will prove that, for each $z\in\mathbb{C}\setminus(-\infty,0]$, $L(z)$ is a logarithm of $z$. Let $g(z)=\frac{e^{L(z)}}z$, Then$$g'(z)=\frac{z\frac1ze^{L(z)}-e^{L(z)}}{z^2}=0.$$So, $g$ is constant. Since $g(1)=\frac{e^0}1=1$, $g=1$ and therefore $e^{L(z)}=z$. In other words, $L(z)$ is a logarithm of $z$.
It remains to be proved that $L(z)=\log(z)$. Let $h(z)=L(z)-\log(z)$. Then$$(\forall z\in\mathbb{C}\setminus(-\infty,0]):h(z)\in2\pi i z,$$since, for each $z$, $h(z)$ is the difference between two logarithms of $z$. But $h$ is continuous and its domain is connected. Since the only connected and non-empty subsets of $2\pi i\mathbb Z$ are those with a single element and since $h(1)=0$, then $h\left(\mathbb{C}\setminus(-\infty,0]\right)=\{0\}$. In other words, $h$ is the null function. So, $L=\log$.