[log] Fix test: implement the method which is called now

(cherry picked from commit e2d35a2f1ff23fb134fca9b7b8de37df74de8ae3)