@kobionic/logger-transport-websocket
TypeScript icon, indicating that this package has built-in type declarations

2.0.2 • Public • Published

Logger Transport WebSocket

npm version License Code style Build status

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

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.

Package Sidebar

Install

npm i @kobionic/logger-transport-websocket

Weekly Downloads

10

Version

2.0.2

License

Apache-2.0

Unpacked Size

16.7 kB

Total Files

6

Last publish

Collaborators

  • jeremiergz