residue-winston
Advanced tools
Comparing version 1.0.20 to 1.0.21
16
index.js
@@ -16,6 +16,8 @@ // | ||
const util = require('util'); | ||
const residue_internal = require('residue'); | ||
const ResidueClient = require('residue'); | ||
const winston = require('winston') | ||
const TransportStream = require('winston-transport'); | ||
const residueInstance = new ResidueClient(); | ||
const Residue = module.exports = function(options) { | ||
@@ -31,10 +33,12 @@ if (!options) { | ||
if (options.config_file) { | ||
residue_internal.loadConfiguration(options.config_file); | ||
residue_instance.loadConfiguration(options.config_file); | ||
} else { | ||
residue_internal.loadConfiguration(options); | ||
residue_instance.loadConfiguration(options); | ||
} | ||
residue_internal.connect(); | ||
this.logger = residue_internal.getLogger(options.logger_id); | ||
residueInstance.connect(); | ||
this.logger = residueInstance.getLogger(options.logger_id); | ||
this.logger.log_sources = { | ||
@@ -95,2 +99,2 @@ base_idx: this.logger.log_sources.base_idx + (options.log_source_layer_count || 6), | ||
module.exports.residue_internal = residue_internal; | ||
module.exports.instance = residueInstance; |
{ | ||
"name": "residue-winston", | ||
"version": "1.0.20", | ||
"version": "1.0.21", | ||
"description": "Winston transport for Residue", | ||
@@ -19,3 +19,3 @@ "main": "index.js", | ||
"dependencies": { | ||
"residue": "^2.3.18", | ||
"residue": "^3.0.5", | ||
"winston": "^2.4.0", | ||
@@ -22,0 +22,0 @@ "winston-transport": "^3.0.1" |
5999
79
+ Addedresidue@3.0.7(transitive)
- Removedresidue@2.3.19(transitive)
Updatedresidue@^3.0.5