renome logging in ffi