Basic logging done

But its not threadsafe yet.
Still, its been a hard work to handle with interceptors :D
#23 #20