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

@activescott/diag-winston

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@activescott/diag-winston

Yet another logging package that provides a simple API on top of winston.

  • 1.0.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
Maintainers
1
Weekly downloads
 
Created
Source

@activescott/diag-winston

npm version Build Status

Yet another logging package. The only thing this package really is doing is defining a consistent API for diagnostic logging.

Usage

This package implements the interface defined in the activescott/diag package.

Recommended way to use is to put a single file in your project like services.ts and export createLogger from there:

export { createLogger } from "@activescott/diag-winston"

This way you can import a single createLogger function throughout your project and easily replace it later with a different implementation if you so choose.

Local Testing

You can also test your shareable config on your computer before publishing by linking your module globally. Type:

npm run -s test

Then, in your project that wants to use your shareable config, type:

yarn link @activescott/diag-winston

FAQs

Package last updated on 13 Sep 2020

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc