2.7.0 • Published 4 months ago

winston-telegram v2.7.0

Weekly downloads
667
License
MIT
Repository
github
Last release
4 months ago

winston-telegram

NPM

A Telegram transport for winston.

Version npm npm Downloads CI Status Coverage Status JavaScript Style Guide

winston-telegram@2

Installation:

$ npm install winston@3
$ npm install winston-telegram@2

Looking for winston-telegram@1.x ?

Documentation below is for winston-telegram@2. Read the winston-telegram@1.x documentation.

Usage

const logger = require('winston')
const TelegramLogger = require('winston-telegram')

// or
import TelegramLogger from 'winston-telegram';

logger.add(new TelegramLogger(options))

Options:

String template is based on named arguments:

'{level}' -> level of messages
'{message}' -> text of messages
'{metadata}' -> metadata object of messages

Examples

Follow below steps to run the examples:

$ git clone git@github.com:ivanmarban/winston-telegram.git -b master --single-branch
$ npm install

Replace TELEGRAM_TOKEN and CHAT_ID with appropiate values, then run whatever example you want:

$ node examples/default-logger.js
2.7.0

4 months ago

2.6.0

2 years ago

2.5.0

2 years ago

2.4.1

3 years ago

2.4.0

3 years ago

2.3.5

3 years ago

2.3.4

3 years ago

2.3.3

3 years ago

2.3.2

3 years ago

2.3.1

3 years ago

2.3.0

4 years ago

1.4.2

4 years ago

2.2.2

4 years ago

2.2.1

4 years ago

2.2.0

5 years ago

1.4.1

5 years ago

2.1.0

5 years ago

1.4.0

5 years ago

1.3.2

5 years ago

2.0.1

5 years ago

2.0.0

5 years ago

1.3.1

5 years ago

1.3.0

6 years ago

1.2.1

7 years ago

1.2.0

7 years ago

1.1.0

7 years ago

1.0.0

7 years ago

0.4.0

8 years ago

0.3.0

8 years ago

0.2.1

8 years ago

0.2.0

8 years ago

0.1.0

8 years ago