Is there any logarithm function implemented in the GMP library?
No there is no such function in GMP. Only in MPFR.