interface of log api