1.0.1 • Published 6 years ago

bunyan-telegram-stream v1.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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');
1.0.1

6 years ago

1.0.0

7 years ago