Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 6, 2024 via pnpm

winston-transport 1.0.2

Base stream implementations for winston@3 and up.
Package summary
Share
0
issues
1
license
8
MIT
Package created
27 Nov 2015
Version published
30 Nov 2015
Maintainers
5
Total deps
8
Direct deps
1
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
8 Packages, Including:
@colors/colors@1.6.0
@types/triple-beam@1.3.5
fecha@4.2.3
logform@2.6.0
ms@2.1.3
safe-stable-stringify@2.4.3
triple-beam@1.4.1
winston-transport@1.0.2
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

1
All Dependencies CSV
β“˜ This is a list of winston-transport 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities
logform2.6.025.6 kBMIT
prod

Visualizations

Frequently Asked Questions

What does winston-transport do?

Winston-transport is an npm package that provides a base TransportStream implementation for winston >= 3. It's designed to be used to write ecosystem Transports for winston. By utilizing winston-transport, you can take advantage of its base functionality and exceptional handling, allowing you for a more efficient implementation of your custom transports.

How do you use winston-transport?

To use winston-transport, first, you need to install the package via your npm or yarn package manager. Following that, you can utilize this const Transport from the winston-transport package to create your custom transports in JavaScript. Below is the basic pattern for creating a custom transport:

const Transport = require('winston-transport');
const util = require('util');

module.exports = class CustomTransport extends Transport {
  constructor(opts) {
    super(opts);
    // Consume any custom options here
  }

  log(info, callback) {
    setImmediate(() => {
      this.emit('logged', info);
    });

    // Perform the writing to the remote service

    callback();
  }
};

The constructor is responsible for setting up any necessary options, while the log method handles writing to the intended location using the given information.

Where are the winston-transport docs?

Documentation for winston-transport is currently not available in a separate, dedicated location. The information provided in the README on the GitHub repository (git+ssh://git@github.com/winstonjs/winston-transport.git) serves as its primary current source of documentations and usage examples. For additional insights and usage cases, exploring open-source projects that use winston-transport, or querying issues on the GitHub repository may prove beneficial.