bunyan-telegram-stream

1.0.1 • Public • Published

Bunyan stream for Telegram

Bunyan stream for sending log messages via Telegram's bot.

Usage

import bunyan from 'bunyan';
import BTS from 'bunyan-telegram-stream';

const chat_id = ...;
const options = {};
const log = bunyan.createLogger({
    name: 'appname',
    streams: [{
        stream: new BTS('bot token', chat_id, options),
        level: bunyan.ERROR,
        type: 'raw',
    }],
});

log.error('terrible error');

Readme

Keywords

none

Package Sidebar

Install

npm i bunyan-telegram-stream

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

67.1 kB

Total Files

5

Last publish

Collaborators

  • b-fett