Skip to content

outwithreality/winston-datadog-transport

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A logging and alerting transport for winston, using the Datadog https transport. See https://www.datadoghq.com/ and https://github.com/winstonjs/winston

Github

https://github.com/outwithreality/winston-datadog-transport

Installation

Installing winston-datadog-transport via npm

  $ npm install winston
  $ npm install winston-datadog-transport

(or add it to your package.json)

Usage

And in your code...

  var winston = require('winston');
  
  //
  // Requiring `winston-datadog-transport` will expose
  // `winston.transports.datadog`
  //
  require('winston-datadog-transport').datadog;
var winstontransportdatadog = require('winston-datadog-transport');
  options = {
  app_key:'<Your Datadog API key>',
  api_key:'<Your Datadog APP key>',
  name:''
  }
  
  winston.add(winston.transports.datadog, options);

Logs with "error' or 'warning' severity are passed up as Datadog events.

Logs with 'info' severity are passed up as metrics - the "meta" data is in the standard Datadog format. No event is logged.

Unsupported

This transport does not support :

  • streaming
  • querying

About

A logging and alerting transport for winston, using the Datadog https transport. See https://www.datadoghq.com/ and https://github.com/winstonjs/winston

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published