add log api and impl