Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Merged
merged 1 commit into from

4 participants

@nagoodman

Allows the library to log using the internal EC2 URL.

@nagoodman

Example use:
var config = { "subdomain": "mycoolloggingdomain", "json": true, "inputUrl" : "https://ec2.logs.loggly.com/inputs/"};

@SeanBannister

this is really handy, thanks

@indexzero indexzero merged commit 6226adf into nodejitsu:master
@sansmischevia

Does loggly have a special endpoint just for ec2 sources?

@adamalex adamalex referenced this pull request from a commit in AppPress/winston-loggly
@nicco nicco add inputUrl as Transport option to support nodejitsu/node-loggly#14 000dec0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
This page is out of date. Refresh to see the latest.
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;
}
};
Something went wrong with that request. Please try again.