lib/wiston-honeybadger.js
function Honey(options) {
    options = options || {};

    assert.isString(options.apiKey, 'Honeybadger transport needs an "apiKey" config option');

    this.name = 'honeybadger';
    this.apiKey = options.apiKey;

    if(!options.logger) {
        options.logger = console;
    }

    this.remote = new Badger(options);

    winston.Transport.call(this, options);
}
function Honey(options) {
    options = options || {};

    assert.isString(options.apiKey, 'Honeybadger transport needs an "apiKey" config option');

    this.name = 'honeybadger';
    this.apiKey = options.apiKey;

    if(!options.logger) {
        options.logger = console;
    }

    this.remote = new Badger(options);

    winston.Transport.call(this, options);
}
function Honey ( options ) { options = options || { } ; assert . isString ( options . apiKey , 'Honeybadger transport needs an "apiKey" config option' ) ; this . name = 'honeybadger' ; this . apiKey = options . apiKey ; if ( ! options . logger ) { options . logger = console ; } this . remote = new Badger ( options ) ; winston . Transport . call ( this , options ) ; }
Honeybadger transport constructor.

@param {Object} options Config object
@throws Error If options.apiKey is not present
Honeybadger transport constructor .