import math


def complexLog(value, base = math.e):
    """Computes the log of a complex number."""
    mag = (value*value.conjugate()).real**.5
    tan_theta = value.imag/value.real
    theta = math.atan(tan_theta)/math.log(base, math.e)
    return complex(math.log(mag, base), theta)