Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Added ability to override input URL (aka, EC2) #14

Merged
merged 1 commit into from Feb 7, 2013
Jump to file or symbol
Failed to load files and symbols.
+6 −1
Split
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;
}
};