"Since $f$ is analytic in $\Omega$ then $\int_{\Omega}f(z)dz=0$." I'm not sure where this is coming from. $\Omega$ is an open set, not a contour.
You mention $\dfrac{f'(z)}{f(z)}.$ That is certainly important here, but I'm not sure how you knew that.
The main idea is suggested by an example: Suppose $f:\Omega \to \mathbb C\setminus (-\infty,0]$ is analytic. Then $\log f(z)$ is analytic on $\Omega,$ where $\log$ means the principal value logarithm. Thus
$$\tag 1 \frac{d \log f(z)}{dz} = \frac{f'(z)}{f(z)}$$
by the chain rule. So there we we see the expression you mentioned, with its connection to the logarithm.
In our problem we want to work backwards, starting with the right side of $(1).$ We are given an analytic $f$ on $\Omega$ that is never $0.$ Therefore $f'/f$ is analytic on $\Omega.$ Suppose we can find an antiderivative $g$ for $f'/f$ on $\Omega.$ We can then hope $e^g=f,$ which is the same thing as saying $g$ is an analytic logarithm of $f$ in $\Omega.$
Towards that end, consider $e^g/f.$The derivative of this is
$$\frac{fe^gg'-e^gf'}{f^2} =\frac{e^g}{f^2}(f'-f')\equiv 0.$$
Since $\Omega$ is connected, $e^g/f=c$ for some constant $c.$ Note $c\ne 0.$ This gives $(1/c)e^g = f.$ We can write $1/c = e^d$ for some constant $d.$ So we conclude $e^{d+g}=f$ in $\Omega$ and we're done.
Now, the crucial assumption that led to a solution is in boldface above. We assumed $f'/f$ has an antiderivative. Is that true? Yes: Since $\Omega$ is simply connected, every analytic function in $\Omega$ has an antiderivative.