Equating real and imaginary parts gives and . Solving these simultaneously by dividing the first equation by the second gives
Substituting into the first equation gives
But since is real, that means everything inside the logarithm can only be positive, therefore we can only accept EVEN values of , so we'll write , which gives us and .
Therefore , and since this is multi-valued, we define the principal value as simply being the "first" possible value (in this case, where ).
So the principal value of .