New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

hologger-local

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

hologger-local - npm Package Compare versions

Comparing version 0.0.1 to 0.0.2

33

lib/local-streamer.js

@@ -13,4 +13,5 @@ var Streamer = require("hologger-streamer");

*
* @param {Object} library: libreria de codigos empleada
* @param {Nomber} isil: identificador numerico de la libreria de codigos empleada
* @param {Object} library libreria de codigos empleada
* @param {Nomber} isil identificador numerico de la libreria de
* codigos empleada
*/

@@ -22,2 +23,4 @@ function LocalStreamer(library, isil){

this._description = "LocalStreamer constructor";
this._logLevels = ["debug", "info", "notice", "warning", "error", "critical", "alert", "emergency"];
this._minLogLevel = process.env.LOCAL_LOG_LEVEL || process.env.HOLOGGER_LOG_LEVEL || 0;

@@ -37,3 +40,3 @@ this._debugDrain = console.log;

/////// INHERITS FROM STREAMER
////// INHERITS FROM STREAMER
LocalStreamer.prototype = Object.create(Streamer.prototype);

@@ -45,3 +48,25 @@ LocalStreamer.prototype.constructor = Streamer;

/////// MODULE EXPORTS
/**
* @description
* Sobreescribe el metodo homonimo de la clase `Streamer`.
*
*
* @param {} gate
* @param {Mixed} info
*/
LocalStreamer.prototype._log = function(gate, info){
if ( this._logLevels.indexOf(info.severity) < this._minLogLevel ) return;
//else:
if (info && info.slug) gate(info.slug);
if (info && info.err) {
gate("====================ERR STACK BEGINS===================");
gate(info.err.stack);
gate("====================ERR STACK ENDS===================");
}
};
////// MODULE EXPORTS
module.exports = exports = LocalStreamer;

2

package.json
{
"name": "hologger-local",
"version": "0.0.1",
"version": "0.0.2",
"description": "Local Streamer for Hologger",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -22,2 +22,4 @@ # hologger-local

HOLOGGER_RBFS=
HOLOGGER_LOG_LEVEL=
LOCAL_LOG_LEVEL=
```

@@ -24,0 +26,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