Say I have the function $\log (f(z))$, then does the imaginary part of the value go down by $-i 2 \pi$ on crossing the branch-cut of the log function even if $f(z)$ is not crossing the branch-cut?
Specifically, consider the function $\log(z^2 +a ^2)$ where $a \in \mathbb{R}$. And I am choosing the branchcuts to be going up/down along the positive/negative imaginary axis starting at $\pm ia$. So if you hit the positive imaginary axis above $ia$ from the right then the imaginary part of the logarithm would be $i\pi$ whereas from the left would be $-i\pi$. I guess that its the same below $-ia$ i.e approach from the right leads to $i\pi$ whereas from the left it leads to $-i\pi$.
Now I am taking a circle around the point $ib$ (say $b>a>0$ or you can also help with the similar case in the LHP)parameterized as $z = ib + \epsilon e^{i\phi}$. Now here begins the confusion -
(1) naively I would have thought that I have to add "by hand" a $-i2\pi$. To the $\log$ when $ -\pi < \phi < -\pi/2$ and $ \pi < \phi < \pi/2$ (i.e when the $z$ is to the left of the branch-cut)
(2) But then in the needed limit of $\epsilon \rightarrow 0$ as $z$ goes around this circle the actual function that the $\log$ sees i.e $z^2 + a^2$ is going around an infinitesimal circle with its center at $b^2-a^2$. So the function $z^2 + a^2$ is far away from the branch-cuts and the branch-points and is not crossing them. So by this argument I would think that no phase adjustments need to be done for the $\log$ as $z$ sweeps out the circle around $ib$.
So which of these (1) or (2) is the right way to think?