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

how to receive stream on winstond #3

Open
LabN36 opened this issue Oct 28, 2017 · 0 comments
Open

how to receive stream on winstond #3

LabN36 opened this issue Oct 28, 2017 · 0 comments

Comments

@LabN36
Copy link

LabN36 commented Oct 28, 2017

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.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant