code: public Sink getSink(String sinkName) {
      // [START getSink]
      Sink sink = logging.getSink(sinkName);
      if (sink == null) {
        // sink was not found
      }
      // [END getSink]
      return sink;
    }
docs: [VARIABLE "my_sink_name"]