Comparing version 1.0.3 to 1.0.4
{ | ||
"name": "fable-log", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple logging wrapper.", | ||
@@ -34,2 +34,3 @@ "main": "source/Fable-Log.js", | ||
"bunyan": "1.5.1", | ||
"bunyan-elasticsearch": "^1.0.0", | ||
"bunyan-mongo": "0.1.0", | ||
@@ -36,0 +37,0 @@ "fable-uuid": "~1.0.1", |
@@ -20,2 +20,3 @@ /** | ||
var _GelfStream = false; | ||
var _ESStream = false; | ||
var _MongoStream = false; | ||
@@ -143,3 +144,3 @@ var _MongoStreamInitialized = false; | ||
_MongoStream = new libBunyanMongo(); | ||
tmpStreams.push({ level:tmpLogLevel, type: 'raw', stream:_MongoStream}) | ||
tmpStreams.push({ level:tmpLogLevel, type: 'raw', stream:_MongoStream}); | ||
break; | ||
@@ -151,4 +152,19 @@ case 'graylog': | ||
_GelfStream = libGelf.forBunyan(tmpServer, tmpPort); | ||
tmpStreams.push({ level:tmpLogLevel, type: 'raw', stream:_GelfStream}) | ||
tmpStreams.push({ level:tmpLogLevel, type: 'raw', stream:_GelfStream}); | ||
break; | ||
case 'elasticsearch': | ||
var libES = require('bunyan-elasticsearch'); | ||
var tmpIndex = pLogStreams[i].index || 'logs'; | ||
var tmpServer = pLogStreams[i].server || '127.0.0.1'; | ||
var tmpPort = pLogStreams[i].port || 9200; | ||
_ESStream = new libES({ | ||
index: tmpIndex, | ||
type: 'logs', | ||
host: tmpServer + ':' + tmpPort | ||
}); | ||
_ESStream.on('error', function (err) { | ||
console.log('[fable-log] Elasticsearch Stream Error:', err.stack); | ||
}); | ||
tmpStreams.push({ level:tmpLogLevel, stream:_ESStream}); | ||
break; | ||
} | ||
@@ -155,0 +171,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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
42207
1089
7
1
+ Addedbunyan-elasticsearch@^1.0.0
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.1(transitive)
+ Addedasap@2.0.6(transitive)
+ Addedbunyan-elasticsearch@1.0.1(transitive)
+ Addedchalk@1.1.3(transitive)
+ Addedelasticsearch@12.1.3(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedforever-agent@0.6.1(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedmoment@2.30.1(transitive)
+ Addedpromise@7.3.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.0(transitive)