Solution (source code)

= Solution

The modulus of $i$ is one and its arguments are $\pi/2+2k\pi$. Thus $\boxed{\log i=i(\pi/2+2k\pi)}$, with principal value $\boxed{i\pi/2}$.