Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

winston-transport

Package Overview
Dependencies
3
Maintainers
4
Versions
18
Issues
File Explorer

Advanced tools

winston-transport

Base stream implementations for [email protected] and up.

    4.5.0latest

Version published
Maintainers
4
Weekly downloads
8,267,605
increased by7.98%

Weekly downloads

Changelog

Source

4.5.0 (2022/02/05)

  • [#81] Memory leak fix: do not wait for process.nextTick to clear callbacks
  • [#87, #82, #67] Update dependencies, CI config, and linter config

Readme

Source

winston-transport

The base TransportStream implementation for winston >= 3. Use these to write ecosystem Transports for winston.

Usage

const Transport = require('winston-transport'); const util = require('util'); // // Inherit from `winston-transport` so you can take advantage // of the base functionality and `.exceptions.handle()`. // module.exports = class CustomTransport extends Transport { constructor(opts) { super(opts); // // Consume any custom options here. e.g.: // - Connection information for databases // - Authentication information for APIs (e.g. loggly, papertrail, // logentries, etc.). // } log(info, callback) { setImmediate(() => { this.emit('logged', info); }); // Perform the writing to the remote service callback(); } };

Tests

Tests are written with mocha, nyc, assume, and abstract-winston-transport. They can be run with npm:

npm test
Author: Charlie Robbins
LICENSE: MIT

Keywords

FAQs

What is winston-transport?

Base stream implementations for [email protected] and up.

Is winston-transport popular?

The npm package winston-transport receives a total of 7,636,076 weekly downloads. As such, winston-transport popularity was classified as popular.

Is winston-transport well maintained?

We found that winston-transport demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 4 open source maintainers collaborating on the project.

Last updated on 05 Feb 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc