residue-winston
Advanced tools
Comparing version 1.0.6 to 1.0.7
10
index.js
@@ -20,3 +20,3 @@ // | ||
var Residue = module.exports = function(options) { | ||
const Residue = module.exports = function(options) { | ||
if (!options) { | ||
@@ -30,3 +30,8 @@ throw "Please provide residue-node options"; | ||
TransportStream.call(this, options); | ||
residue.connect(options); | ||
if (options.config_file) { | ||
residue.loadConfiguration(options.config_file); | ||
} else { | ||
residue.loadConfiguration(options); | ||
} | ||
residue.connect(); | ||
this._residue = residue; // for export purposes | ||
@@ -82,1 +87,2 @@ this.logger = residue.getLogger(options.logger_id); | ||
}; | ||
{ | ||
"name": "residue-winston", | ||
"version": "1.0.6", | ||
"version": "1.0.7", | ||
"description": "Winston transport for Residue", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"residue": "^2.3.3", | ||
"residue": "^2.3.4", | ||
"winston": "^2.4.0", | ||
@@ -22,0 +22,0 @@ "winston-transport": "^3.0.1" |
@@ -19,5 +19,6 @@ ﷽ | ||
new Residue({ | ||
url: '127.0.0.1:8777', | ||
// ... more configs | ||
logger_id: 'sample-app' | ||
logger_id: 'sample-app', | ||
// following is optional, if config_file not provided | ||
// all these options are used as config | ||
config_file: 'path to config file' | ||
}) | ||
@@ -24,0 +25,0 @@ ] |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5065
72
49
Updatedresidue@^2.3.4