winston-datadog-transport
v1.0.2
Published
A logging and alerting transport for winston, using the Datadog https transport. See https://www.datadoghq.com/ and https://github.com/winstonjs/winston
Downloads
49
Maintainers
Readme
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