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.1.0 to 1.1.1

13

index.js

@@ -16,4 +16,13 @@ var path = require('path');

module.exports = function () {
var winstonLogger = new (winston.Logger)({ transports: [ new TaggedConsoleTarget() ] });
module.exports = function (config) {
var winstonConfig = {};
if (config) {
// Currently no config format to understand.
} else {
// Default to console output if no config specified.
winstonConfig = { transports: [ new TaggedConsoleTarget() ] };
}
var winstonLogger = new (winston.Logger)(winstonConfig);
var log = new TaggedLogger(winstonLogger, []);

@@ -20,0 +29,0 @@

2

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

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

@@ -9,3 +9,12 @@ Installation

var log = require('logginator')();
var log = require('logginator')(config);
log.info("I am a log message");
Config
======
Optional. If left empty, will default to console output.
If specified, is assumed to define where the output will go. This is currently not
defined, so the only valid value is `{}`, which results in no output.
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