demo: modify the demo of log api
modify the api