change logger API