use logger in RPCTrait