Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

fable-log

Package Overview
Dependencies
Maintainers
2
Versions
39
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

fable-log - npm Package Compare versions

Comparing version 1.0.3 to 1.0.4

3

package.json
{
"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 @@ }

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc