winston-telegram
A Telegram transport for winston.
Installation
$ npm install winston
$ npm install winston-telegram
Usage
var winston = require('winston');
require('winston-telegram').Telegram;
winston.add(winston.transports.Telegram, options);
Options are the following:
- token: The Telegram bot authentication token. [required]
- chatid: The chatid you want to send to. [required]
- level: Level of messages that this transport should log. [optional] [default info]
- unique: Whether to log only the declared level and none above. [boolean] [optional]
- silent: Whether to suppress output. [boolean] [optional]