add log API implementation.
add more synchronous APIs.