Skip to content

Commit

Permalink
Merge pull request #14 from nagoodman/master
Browse files Browse the repository at this point in the history
Added ability to override input URL (aka, EC2)
  • Loading branch information
indexzero committed Feb 7, 2013
2 parents deec4e4 + 317c217 commit 6226adf
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/loggly/config.js
Expand Up @@ -28,6 +28,7 @@ var Config = exports.Config = function (defaults) {
this.subdomain = defaults.subdomain; this.subdomain = defaults.subdomain;
this.json = defaults.json || null; this.json = defaults.json || null;
this.auth = defaults.auth || null; this.auth = defaults.auth || null;
this.inputUrl = defaults.inputUrl || 'https://logs.loggly.com/inputs/';
}; };


Config.prototype = { Config.prototype = {
Expand All @@ -44,6 +45,10 @@ Config.prototype = {
}, },


get inputUrl () { get inputUrl () {
return 'https://logs.loggly.com/inputs/'; return this._inputUrl;
},

set inputUrl (value) {
this._inputUrl = value;
} }
}; };

0 comments on commit 6226adf

Please sign in to comment.