@kobionic/logger-transport-websocket
v2.0.2
Published
Just a WebSocket transport for Winston, nothing much.
Downloads
17
Maintainers
Readme
Logger Transport WebSocket
Just a WebSocket transport for Winston, nothing much.
Installation
npm install @kobionic/logger-transport-websocket
Usage
import logger from '@kobionic/logger';
import WebsocketTransport from '@kobionic/logger-transport-websocket';
import http from 'http';
const server = http.createServer();
logger.add(new WebsocketTransport(server, 'message'));
server.listen(3000);
Run Tests
npm test
Authors
- Jeremie Rodriguez <[email protected]> - Main developer
License
This project is licensed under the Apache License 2.0 - see the LICENSE file for details.