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

logginator

Package Overview
Dependencies
Maintainers
2
Versions
20
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

logginator - npm Package Compare versions

Comparing version 1.0.0 to 1.1.0

14

index.js

@@ -0,1 +1,2 @@

var path = require('path');
var winston = require('winston');

@@ -5,2 +6,12 @@ var TaggedConsoleTarget = require('tagged-console-target');

function moduleName() {
if (module && module.parent && module.parent.id) {
var moduleFile = path.basename(module.parent.id);
var nameMatch = /(.*)\.js$/.exec(moduleFile);
if (nameMatch && nameMatch[1])
return nameMatch[1];
}
return "main";
}
module.exports = function () {

@@ -10,3 +21,4 @@ var winstonLogger = new (winston.Logger)({ transports: [ new TaggedConsoleTarget() ] });

return log;
var tag = moduleName();
return log.createSublogger(tag);
};

2

package.json
{
"name": "logginator",
"version": "1.0.0",
"version": "1.1.0",
"description": "Creates an instance of TaggedLogger",

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

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