Socket
Socket
Sign inDemoInstall

architect-winston-logger

Package Overview
Dependencies
126
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    architect-winston-logger

Wrapper for winston to use architect


Version published
Weekly downloads
4
decreased by-20%
Maintainers
1
Install size
630 kB
Created
Weekly downloads
 

Readme

Source

architect-winston-logger

Wrapper for using winston as an architect plugin

Prerequisites

  • Include this package as an architect plugin in your application.
  • Inject loggerFactory by declaring it in the consumes array of one of your plugins

Usage


module.exports = function (options, imports) {
  var loggerA = imports.loggerFactory.create('loggerA', 'task1');

  loggerA.log('info', 'Something wrong');
  // info: [task1] Something wrong

  var loggerB = loggerA.createChild('subtask2');
  loggerB.log('info', 'Something else');
  // info: [task1:subtask2] Something else

  loggerB.destroy();

};

FAQs

Last updated on 05 Mar 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc