https://github.com/is2ei/winston-typetalk
Typetalk integration for Winston
https://github.com/is2ei/winston-typetalk
Last synced: 10 months ago
JSON representation
Typetalk integration for Winston
- Host: GitHub
- URL: https://github.com/is2ei/winston-typetalk
- Owner: is2ei
- License: mit
- Created: 2019-01-05T17:03:51.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-02-03T14:22:27.000Z (over 7 years ago)
- Last Synced: 2025-02-12T05:43:30.840Z (over 1 year ago)
- Language: JavaScript
- Size: 85 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
winston-typetalk
===
[][travis]
[][coveralls]
[][npm]
[][gitter]
[travis]: https://travis-ci.org/is2ei/winston-typetalk
[coveralls]: https://coveralls.io/github/is2ei/winston-typetalk?branch=master
[npm]: https://badge.fury.io/js/winston-typetalk
[gitter]: https://gitter.im/is2ei/winston-typetalk
A Typetalk transport for winston inspired by [ivanmarban/winston-telegram](https://github.com/ivanmarban/winston-telegram).
## Install
```
$ npm install winston-typetalk
```
## Usage
```javascript
const logger = require('winston');
const typetalkLogger = require('winston-typetalk');
logger.add(new typetalkLogger({token: YOUR_TYPETALK_ACCESS_TOKEN, topicId: TOPID_ID}));
logger.info('Hello, world!');
```