Skip to content

Unofficial LogDNA transport for the winston logging library

License

Notifications You must be signed in to change notification settings

KeyrockEU/logdna-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Unofficial LogDNA transport for the winston logging library

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published