code: function (config) {
          var stream =  new SplunkStream(config);
          /**
           * @typedef SplunkBunyanStream
           * @property {string} level The logging level for Bunyan.
           * @property {string} type Always <code>raw</code>.
           * @property {function} on Takes an <code>event</code> string, and a callback function.
           * The most useful event to listen for is <code>error</code>.
           * See {@link https://nodejs.org/api/events.html#events_emitter_on_event_listener|Node.js events} documentation.
           * @property {function} setEventFormatter Overrides the eventFormatter for the underlying SplunkLogger.
           * Takes a callback function parameter: <code>function(message, severity)</code>, where message
           * is an object, and severity is a string.
           * @property {function} on Adds a listener to to the SplunkStream object, typically used for the error event.
           * @property {function} flush Manually sends all queued events to Splunk in a single HTTP request.
           * Takes a callback function parameter: <code>function(err, response, body)</code>.
           * @property {SplunkStream} stream See {@link SplunkStream}
           */
          return {
              level: config.level || module.exports.levels.INFO,
              type: "raw",
              setEventFormatter: function(formatter) {
                  this.stream.logger.eventFormatter = formatter;
              },
              on: function(event, callback) {
                  this.stream.on(event, callback);
              },
              flush: function(callback) {
                  // If flush is called with no param, use the send() callback
                  callback = callback || this.stream.send;
                  this.stream.logger.flush(callback);
              },
              stream: stream
          };
      }
docs: Creates a Bunyan Stream object with the provided <code>config</code>.
  
  @param {object} config - See {@link SplunkStream}.
  @returns {SplunkBunyanStream} A Bunyan Stream object.
  @memberof SplunkBunyanLogger