test-set-log converted to support rpc