code: public Sink createSink(String sinkName, String datasetName) {
      // [START logging_create_sink]
      SinkInfo sinkInfo = SinkInfo.of(sinkName, DatasetDestination.of(datasetName));
      Sink sink = logging.create(sinkInfo);
      // [END logging_create_sink]
      return sink;
    }
docs: [VARIABLE "my_dataset"]