A logging and alerting transport for winston, using the Datadog https transport. See https://www.datadoghq.com/ and https://github.com/winstonjs/winston
https://github.com/outwithreality/winston-datadog-transport
$ npm install winston
$ npm install winston-datadog-transport
(or add it to your package.json)
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.
This transport does not support :
- streaming
- querying