@abeai/pino-websocket

0.2.1 • Public • Published

pino-websocket

This module provides a "transport" for [pino][pino] that simply forwards messages to a websocket socket server. The module can echo the received logs or work silently.

You should install pino-websocket globally for ease of use:

$ npm install -g @abeai/pino-websocket

Usage

Given an application foo that logs via [pino][pino], and a webscoket server that collects logs on port 5000 on IP 10.10.10.5, you would use pino-websocket like so:

$ node foo | pino-websocket -a 10.10.10.5 -p 5000

Dependencies (8)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i @abeai/pino-websocket

    Weekly Downloads

    221

    Version

    0.2.1

    License

    MIT

    Unpacked Size

    21.7 kB

    Total Files

    7

    Last publish

    Collaborators

    • abe-ai
    • abeai-sam