client/splunk.js
function EventWriter(output, error) {
        this._out = utils.isUndefined(output) ? process.stdout : output;
        this._err = utils.isUndefined(error) ? process.stderr : error;

        // Has the opening <stream> tag been written yet?
        this._headerWritten = false;
    }
function EventWriter(output, error) {
        this._out = utils.isUndefined(output) ? process.stdout : output;
        this._err = utils.isUndefined(error) ? process.stderr : error;

        // Has the opening <stream> tag been written yet?
        this._headerWritten = false;
    }
function EventWriter ( output , error ) { this . _out = utils . isUndefined ( output ) ? process . stdout : output ; this . _err = utils . isUndefined ( error ) ? process . stderr : error ; // Has the opening <stream> tag been written yet? this . _headerWritten = false ; }
`EventWriter` writes events and error messages to Splunk from a modular input.

Its two important methods are `writeEvent`, which takes an `Event` object,
and `log`, which takes a severity and an error message.

@param {Object} output A stream to output data, defaults to `process.stdout`
@param {Object} error A stream to output errors, defaults to `process.stderr`
@class splunkjs.ModularInputs.EventWriter
EventWriter writes events and error messages to Splunk from a modular input .