Skip to content
New issue

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

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LOG-8039 update packages #59

Merged
merged 18 commits into from Apr 6, 2020

redo tests

  • Loading branch information
alestrunda committed Apr 3, 2020
commit 65d42701522909678b05d86d9aa534ca3a58362c
@@ -26,7 +26,7 @@ var timerFunctionForProcessExit = null;
// Constructor function for the Loggly transport object responsible
// for persisting log messages and metadata to Loggly; 'LaaS'.
//
var Loggly = (exports.Loggly = function(options) {
var Loggly = (exports.Loggly = function(options, client) {
options = options || {};

//
@@ -49,19 +49,21 @@ var Loggly = (exports.Loggly = function(options) {
tags = [tags];
}

this.client = loggly.createClient({
subdomain: options.subdomain,
json: options.json || false, //TODO: should be false
proxy: options.proxy || null,
token: options.token,
tags: tags,
isBulk: options.isBulk || false,
bufferOptions: options.bufferOptions || {
size: 500,
retriesInMilliSeconds: 30 * 1000
},
networkErrorsOnConsole: options.networkErrorsOnConsole || false
});
this.client =
client ||
loggly.createClient({
subdomain: options.subdomain,
json: options.json || false, //TODO: should be false
proxy: options.proxy || null,
token: options.token,
tags: tags,
isBulk: options.isBulk || false,
bufferOptions: options.bufferOptions || {
size: 500,
retriesInMilliSeconds: 30 * 1000
},
networkErrorsOnConsole: options.networkErrorsOnConsole || false
});

this.timestamp = options.timestamp === false ? false : true;
this.stripColors = options.stripColors || false;
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.