interface of log api.