Skip to content
This repository was archived by the owner on Feb 11, 2025. It is now read-only.

how to receive stream on winstond #3

@LabN36

Description

@LabN36

Hi, I'm using winston to send the log stream to the winstond

var winstond = require('winstond');

var server = winstond.nssocket.createServer({
  services: ['collect', 'query', 'stream'],
  port: 9003
});

server.add(winstond.transports.File, {
  filename: __dirname + '/foo.log'
});

server.listen();

in the code above instead of getting a stream the logs got save directly on the file.

actually i want to emit all the logs coming to the winstond server(from the application server where winston resides)to the client side through socket.io

as a solution i know that i can write custom transport and emit the logs from application server to another server but i want to understand how does winstond is receiving the stream.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions