@keyrock/winston-logdna-transport

0.0.1 • Public • Published

winston-logdna-transport

Unofficial winston transport for LogDNA

Usage

First, you'll need to install the package with yarn or npm:

yarn add @keyrock/winston-logdna-transport

or

npm install --save @keyrock/winston-logdna-transport

Then, when instantiating winston:

const winston = require("winston");
const LogDNATransport = require("@keyrock/winston-logdna-transport");

// ...

const logger = winston.createLogger({
  level: "debug",
  transports: [
    new LogDNATransport({
      key: "your LogDNA ingestion key",
      app: "your app name",
      env: process.env.NODE_ENV || "development" || "whatever you want"
    })
    // ... your other transports
  ]
});

License

MIT

Package Sidebar

Install

npm i @keyrock/winston-logdna-transport

Weekly Downloads

1

Version

0.0.1

License

MIT

Unpacked Size

57.6 kB

Total Files

8

Last publish

Collaborators

  • jfrescokr
  • jdgk
  • keyrock-ninjas