Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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 join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant