Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #14 from nagoodman/master

Added ability to override input URL (aka, EC2)
  • Loading branch information...
commit 6226adf18d047bd28a43d34f4616ed09a0504833 2 parents deec4e4 + 317c217
@indexzero indexzero authored
Showing with 6 additions and 1 deletion.
  1. +6 −1 lib/loggly/config.js
View
7 lib/loggly/config.js
@@ -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;
}
};
Please sign in to comment.
Something went wrong with that request. Please try again.