PHP 8.2.30
Preview: README.md Size: 1.04 KB
/proc/thread-self/root/home/byroehnu/.trash/node_modules11/winston-transport/README.md

# winston-transport

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

## Usage

``` js
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`:

``` bash
npm test
```

##### Author: [Charlie Robbins](https://github.com/indexzero)
##### LICENSE: MIT

Directory Contents

Dirs: 2 × Files: 11

Name Size Perms Modified Actions
- drwxr-xr-x 2026-02-21 00:53:36
Edit Download
dist DIR
- drwxr-xr-x 2026-02-21 00:53:32
Edit Download
25 B lrw-r--r-- 2026-02-21 00:53:20
Edit Download
156 B lrw-r--r-- 2026-02-21 00:53:22
Edit Download
25 B lrw-r--r-- 2026-02-21 00:53:22
Edit Download
4.14 KB lrw-r--r-- 2026-02-21 00:53:38
Edit Download
1.05 KB lrw-r--r-- 2026-02-21 00:53:40
Edit Download
188 B lrw-r--r-- 2026-02-21 00:53:28
Edit Download
3.75 KB lrw-r--r-- 2026-02-21 00:53:30
Edit Download
1.08 KB lrw-r--r-- 2026-02-21 00:53:24
Edit Download
6.75 KB lrw-r--r-- 2026-02-21 00:53:34
Edit Download
1.48 KB lrw-r--r-- 2026-02-21 00:53:36
Edit Download
1.04 KB lrw-r--r-- 2026-02-21 00:53:38
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).