add write_api_log method
v0.1.1.1