Skip to content

Bunyan stream for sending log messages via Telegram's bot

Notifications You must be signed in to change notification settings

b-fett/bunyan-telegram-stream

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Bunyan stream for sending log messages via Telegram's bot

Resources

Stars

Watchers

Forks

Packages

No packages published