Permalink
Browse files

Merge pull request #14 from nagoodman/master

Added ability to override input URL (aka, EC2)
  • Loading branch information...
indexzero committed Feb 7, 2013
2 parents deec4e4 + 317c217 commit 6226adf18d047bd28a43d34f4616ed09a0504833
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/loggly/config.js
View
@@ -28,6 +28,7 @@ var Config = exports.Config = function (defaults) {
this.subdomain = defaults.subdomain;
this.json = defaults.json || null;
this.auth = defaults.auth || null;
+ this.inputUrl = defaults.inputUrl || 'https://logs.loggly.com/inputs/';
};
Config.prototype = {
@@ -44,6 +45,10 @@ Config.prototype = {
},
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.